added a basic dcerpc endpoint mapper to Samba4. Currently only
[idra/samba.git] / source4 / lib / genparser.c
index 39c455def409444ded0755582876566e2ce3d6c6..0f5d26620b2a99beec7b5dd5e4d7440a54579ff4 100644 (file)
 
 #include "includes.h"
 
-/* see if a range of memory is all zero. Used to prevent dumping of zero elements */
-static int all_zero(const char *ptr, unsigned size)
-{
-       int i;
-       if (!ptr) return 1;
-       for (i=0;i<size;i++) {
-               if (ptr[i]) return 0;
-       }
-       return 1;
-}
-
 /* encode a buffer of bytes into a escaped string */
 static char *encode_bytes(TALLOC_CTX *mem_ctx, const char *ptr, unsigned len)
 {