Put strcasecmp/strncasecmp on the banned list (except for needed calls
[jra/samba/.git] / source3 / lib / util_file.c
index 5e9732ce527be4672bfb8fc327682ec710352fb8..bd505ac921c37f0f89098da39677f4c646bf92e6 100644 (file)
 
 #include "includes.h"
 
+#ifndef MAP_FAILED
+#define MAP_FAILED ((void *)-1)
+#endif
+
+
 static int gotalarm;
 
 /***************************************************************
@@ -455,8 +460,8 @@ void *map_file(char *fname, size_t size)
                p = file_load(fname, &s2);
                if (!p) return NULL;
                if (s2 != size) {
-                       DEBUG(1,("incorrect size for %s - got %l expected %l\n",
-                                fname, s2, size));
+                       DEBUG(1,("incorrect size for %s - got %lu expected %lu\n",
+                                fname, (unsigned long)s2, (unsigned long)size));
                        if (p) free(p);
                        return NULL;
                }