s3-talloc Change TALLOC_ARRAY() to talloc_array()
[samba.git] / source3 / web / swat.c
index 1b73b21dd34ca0ccded92d76571ec3af40731711..277b25c4268acfb66446a42e9bd5f6f81083e368 100644 (file)
@@ -33,6 +33,8 @@
 #include "web/swat_proto.h"
 #include "printing/pcap.h"
 #include "printing/load.h"
+#include "passdb.h"
+#include "intl/lang_tdb.h"
 
 static int demo_mode = False;
 static int passwd_only = False;
@@ -81,7 +83,7 @@ static char *fix_backslash(const char *str)
        return newstring;
 }
 
-static const char *fix_quotes(TALLOC_CTX *ctx, const char *str)
+static const char *fix_quotes(TALLOC_CTX *ctx, char *str)
 {
        char *newstring = NULL;
        char *p = NULL;
@@ -99,7 +101,7 @@ static const char *fix_quotes(TALLOC_CTX *ctx, const char *str)
                }
                ++p;
        }
-       newstring = TALLOC_ARRAY(ctx, char, newstring_len);
+       newstring = talloc_array(ctx, char, newstring_len);
        if (!newstring) {
                return "";
        }