r17334: Some C++ warnings
[metze/samba/wip.git] / source3 / lib / ldap_escape.c
index fcb787e9e8556dea396a8dcffe2a2de717cd6ef5..26230884341deb1952064b16c7d36dcc9cb7f98c 100644 (file)
@@ -36,7 +36,7 @@
 char *escape_ldap_string_alloc(const char *s)
 {
        size_t len = strlen(s)+1;
-       char *output = SMB_MALLOC(len);
+       char *output = (char *)SMB_MALLOC(len);
        const char *sub;
        int i = 0;
        char *p = output;
@@ -68,7 +68,7 @@ char *escape_ldap_string_alloc(const char *s)
                
                if (sub) {
                        len = len + 3;
-                       output = SMB_REALLOC(output, len);
+                       output = (char *)SMB_REALLOC(output, len);
                        if (!output) { 
                                return NULL;
                        }