Changeset 8451


Ignore:
Timestamp:
May 20, 2009, 1:42:11 PM (12 years ago)
Author:
charles
Message:

(trunk) #7 DHT: apply jch's dht-warnings.patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/dht/dht.c

    r8446 r8451  
    4646#include "dht.h"
    4747
     48#ifndef HAVE_MEMMEM
    4849#ifdef __GLIBC__
    4950#define HAVE_MEMMEM
     51#endif
    5052#endif
    5153
     
    20952097    for(i = 0; i < haystacklen - needlelen; i++) {
    20962098        if(memcmp(h + i, n, needlelen) == 0)
    2097             return h + i;
     2099            return (void*)(h + i);
    20982100    }
    20992101    return NULL;
Note: See TracChangeset for help on using the changeset viewer.