- Don't rely on the default calling convention being cdecl for function pointers
[reactos.git] / reactos / lib / sdk / crt / search / lfind.c
index 1a03476..bd2dcd7 100644 (file)
@@ -1,12 +1,11 @@
-#include <search.h>
 #include <stdlib.h>
-
+#include <search.h>
 
 /*
  * @implemented
  */
-void *_lfind(const void *key, const void *base, size_t *nelp,
-         size_t width, int (*compar)(const void *, const void *))
+void *_lfind(const void *key, const void *base, unsigned int *nelp,
+         unsigned int width, int (__cdecl *compar)(const void *, const void *))
 {
        char* char_base = (char*)base;
        unsigned int i;
@@ -19,3 +18,4 @@ void *_lfind(const void *key, const void *base, size_t *nelp,
        return NULL;
 }
 
+