Fix the build.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 14 Apr 2008 18:39:12 +0000 (20:39 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 14 Apr 2008 18:39:12 +0000 (20:39 +0200)
(This used to be commit a70cbd63d9c398ddcbbaa595ee29343335e89aa7)

source4/utils/net/net_join.c

index 2102257c6c8e92cf640b1274e3205926abaef89f..37b3c21fcf98d975c1cc5e4d1941ccc313339094 100644 (file)
@@ -114,11 +114,11 @@ int net_vampire(struct net_context *ctx, int argc, const char **argv)
                case 0: /* no args -> fail */
                        return net_vampire_usage(ctx, argc, argv);
                case 1: /* only DOMAIN */
-                       tmp = talloc_strdup(ctx->mem_ctx, argv[0]);
+                       tmp = talloc_strdup(ctx, argv[0]);
                        break;
                case 2: /* domain and target dir */
-                       tmp = talloc_strdup(ctx->mem_ctx, argv[0]);
-                       targetdir = talloc_strdup(ctx->mem_ctx, argv[1]);
+                       tmp = talloc_strdup(ctx, argv[0]);
+                       targetdir = talloc_strdup(ctx, argv[1]);
                        break;
                default: /* too many args -> fail */
                        return net_vampire_usage(ctx, argc, argv);
@@ -131,7 +131,7 @@ int net_vampire(struct net_context *ctx, int argc, const char **argv)
                return -1;      
        }
        libnetctx->cred = ctx->credentials;
-       r = talloc(ctx->mem_ctx, struct libnet_Vampire);
+       r = talloc(ctx, struct libnet_Vampire);
        if (!r) {
                return -1;
        }
@@ -151,7 +151,7 @@ int net_vampire(struct net_context *ctx, int argc, const char **argv)
                talloc_free(libnetctx);
                return -1;
        }
-       d_printf("Vampired domain %s (%s)\n", r->out.domain_name, dom_sid_string(ctx->mem_ctx, r->out.domain_sid));
+       d_printf("Vampired domain %s (%s)\n", r->out.domain_name, dom_sid_string(ctx, r->out.domain_sid));
 
        talloc_free(libnetctx);
        return 0;