summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-08-18 13:00:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:08 -0500
commit770fb6d22d4bfeb87a35cff49b2756ea94d0979d (patch)
tree225f742d3073bdcf7f7f7ed24e0bfdc0bd7c2d29 /source4/utils
parentbc3a20e9d8cec0b0b402e922214fc5a7f08e785e (diff)
downloadsamba-770fb6d22d4bfeb87a35cff49b2756ea94d0979d.tar.gz
samba-770fb6d22d4bfeb87a35cff49b2756ea94d0979d.tar.bz2
samba-770fb6d22d4bfeb87a35cff49b2756ea94d0979d.zip
r1880: bugger, now I have used gcc 3.4.1 myself and have statements before declarations
Does any knows if there are flags to let gcc 3.4.1 fail with that? metze (This used to be commit 6ad57a86c8583df90a93fdf36b7184010d2054bc)
Diffstat (limited to 'source4/utils')
-rw-r--r--source4/utils/net/net.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c
index f1bb4cef4c..b6b3fb6fb9 100644
--- a/source4/utils/net/net.c
+++ b/source4/utils/net/net.c
@@ -157,6 +157,11 @@ static int binary_net(int argc, const char **argv)
TALLOC_CTX *mem_ctx;
struct net_context *ctx;
poptContext pc;
+ struct poptOption long_options[] = {
+ {"help", 'h', POPT_ARG_NONE, 0, 'h'},
+ {NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_version},
+ { 0, 0, 0, 0}
+ };
setup_logging("net", DEBUG_STDOUT);
@@ -172,13 +177,7 @@ static int binary_net(int argc, const char **argv)
}
ZERO_STRUCTP(ctx);
- ctx->mem_ctx = mem_ctx;
-
- struct poptOption long_options[] = {
- {"help", 'h', POPT_ARG_NONE, 0, 'h'},
- {NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_version},
- { 0, 0, 0, 0}
- };
+ ctx->mem_ctx = mem_ctx;
pc = poptGetContext(NULL, argc, (const char **) argv, long_options,
POPT_CONTEXT_KEEP_FIRST);