svn commit: samba r1880 - branches/SAMBA_4_0/source/utils/net
metze at samba.org
metze at samba.org
Wed Aug 18 13:00:31 GMT 2004
Author: metze
Date: 2004-08-18 13:00:28 +0000 (Wed, 18 Aug 2004)
New Revision: 1880
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1880&nolog=1
Log:
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
Modified:
branches/SAMBA_4_0/source/utils/net/net.c
Changeset:
Modified: branches/SAMBA_4_0/source/utils/net/net.c
===================================================================
--- branches/SAMBA_4_0/source/utils/net/net.c 2004-08-18 12:47:08 UTC (rev 1879)
+++ branches/SAMBA_4_0/source/utils/net/net.c 2004-08-18 13:00:28 UTC (rev 1880)
@@ -157,6 +157,11 @@
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,14 +177,8 @@
}
ZERO_STRUCTP(ctx);
- ctx->mem_ctx = mem_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}
- };
-
pc = poptGetContext(NULL, argc, (const char **) argv, long_options,
POPT_CONTEXT_KEEP_FIRST);
More information about the samba-cvs
mailing list