summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-02-20 21:58:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:15 -0500
commitb7e7a5ef20d1da508afa6ad5a3bf852049951711 (patch)
treed0874a47a658c1a3d99c895a24ef7d10d4b02d22
parent2203bed32c84c63737f402accf73452efb76b483 (diff)
downloadsamba-b7e7a5ef20d1da508afa6ad5a3bf852049951711.tar.gz
samba-b7e7a5ef20d1da508afa6ad5a3bf852049951711.tar.bz2
samba-b7e7a5ef20d1da508afa6ad5a3bf852049951711.zip
r13579: Next try to fix the AIX build. Thanks to Björn for nagging...
Volker (This used to be commit 4cf5109c7a1355f0adb42891ff490f03ae677347)
-rw-r--r--source3/utils/net_rpc_shell.c42
1 files changed, 20 insertions, 22 deletions
diff --git a/source3/utils/net_rpc_shell.c b/source3/utils/net_rpc_shell.c
index 3887fd9ae2..4a4eadeef2 100644
--- a/source3/utils/net_rpc_shell.c
+++ b/source3/utils/net_rpc_shell.c
@@ -22,8 +22,6 @@
#include "includes.h"
#include "utils/net.h"
-static struct rpc_sh_cmd sh_cmds[];
-
static NTSTATUS rpc_sh_info(TALLOC_CTX *mem_ctx, struct rpc_sh_ctx *ctx,
struct rpc_pipe_client *pipe_hnd,
int argc, const char **argv)
@@ -181,6 +179,26 @@ static BOOL net_sh_process(struct rpc_sh_ctx *ctx,
return True;
}
+static struct rpc_sh_cmd sh_cmds[6] = {
+
+ { "info", NULL, PI_SAMR, rpc_sh_info,
+ "Print information about the domain connected to" },
+
+ { "rights", net_rpc_rights_cmds, 0, NULL,
+ "List/Grant/Revoke user rights" },
+
+ { "share", net_rpc_share_cmds, 0, NULL,
+ "List/Add/Remove etc shares" },
+
+ { "user", net_rpc_user_cmds, 0, NULL,
+ "List/Add/Remove user info" },
+
+ { "account", net_rpc_acct_cmds, 0, NULL,
+ "Show/Change account policy settings" },
+
+ { NULL, NULL, 0, NULL, NULL }
+};
+
int net_rpc_shell(int argc, const char **argv)
{
NTSTATUS status;
@@ -254,23 +272,3 @@ int net_rpc_shell(int argc, const char **argv)
return 0;
}
-
-static struct rpc_sh_cmd sh_cmds[6] = {
-
- { "info", NULL, PI_SAMR, rpc_sh_info,
- "Print information about the domain connected to" },
-
- { "rights", net_rpc_rights_cmds, 0, NULL,
- "List/Grant/Revoke user rights" },
-
- { "share", net_rpc_share_cmds, 0, NULL,
- "List/Add/Remove etc shares" },
-
- { "user", net_rpc_user_cmds, 0, NULL,
- "List/Add/Remove user info" },
-
- { "account", net_rpc_acct_cmds, 0, NULL,
- "Show/Change account policy settings" },
-
- { NULL, NULL, 0, NULL, NULL }
-};