~hecanjog/pippi

80d9de2c28c2af9bd73d5fb818b0cd6103935f50 — Erik Schoster 30 days ago 40044b9
remove u_int32_t reference
1 files changed, 3 insertions(+), 3 deletions(-)

M libpippi/src/pippicore.c
M libpippi/src/pippicore.c => libpippi/src/pippicore.c +3 -3
@@ 2284,8 2284,8 @@ lpfloat_t lpstofreq(lpfloat_t seconds) {

/* FNV-1 hash implementation adapted from:
 * http://www.isthe.com/chongo/src/fnv/hash_32.c */
u_int32_t lphashstr(char * str) {
    u_int32_t hval = FNV1_32_MAGIC_NUMBER;
uint32_t lphashstr(char * str) {
    uint32_t hval = FNV1_32_MAGIC_NUMBER;
    unsigned char *s = (unsigned char *)str;	/* unsigned string */

    /* FNV-1 hash each octet in the buffer */


@@ 2294,7 2294,7 @@ u_int32_t lphashstr(char * str) {
        hval += (hval<<1) + (hval<<4) + (hval<<7) + (hval<<8) + (hval<<24);

        /* xor the bottom with the current octet */
        hval ^= (u_int32_t)*s++;
        hval ^= (uint32_t)*s++;
    }

    /* return our new hash value */