s3:lib/netapi/examples: fix const warnings in netlogon_control2.c
authorStefan Metzmacher <metze@samba.org>
Wed, 26 Feb 2014 19:16:26 +0000 (20:16 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 2 Apr 2014 07:03:43 +0000 (09:03 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/lib/netapi/examples/netlogon/netlogon_control2.c

index ea8e8c254c4955e376034fe17686ada668883c5a..72315c996f4e5b0664ccacfabbe9bccc568a49f5 100644 (file)
@@ -39,7 +39,7 @@ int main(int argc, const char **argv)
        struct NETLOGON_INFO_2 *i2 = NULL;
        struct NETLOGON_INFO_3 *i3 = NULL;
        struct NETLOGON_INFO_4 *i4 = NULL;
-       const char *domain = NULL;
+       char *domain = NULL;
 
        poptContext pc;
        int opt;
@@ -75,7 +75,7 @@ int main(int argc, const char **argv)
                level = atoi(poptGetArg(pc));
        }
 
-       domain = "TEST";
+       domain = strdup("TEST");
 
        /* I_NetLogonControl2 */