svn commit: samba r13579 - branches/SAMBA_3_0/source/utils
trunk/source/utils
vlendec at samba.org
vlendec at samba.org
Mon Feb 20 21:58:33 GMT 2006
Author: vlendec
Date: 2006-02-20 21:58:33 +0000 (Mon, 20 Feb 2006)
New Revision: 13579
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13579
Log:
Next try to fix the AIX build. Thanks to Bj?\195?\182rn for nagging...
Volker
Modified:
branches/SAMBA_3_0/source/utils/net_rpc_shell.c
trunk/source/utils/net_rpc_shell.c
Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_rpc_shell.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net_rpc_shell.c 2006-02-20 21:27:18 UTC (rev 13578)
+++ branches/SAMBA_3_0/source/utils/net_rpc_shell.c 2006-02-20 21:58:33 UTC (rev 13579)
@@ -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 @@
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 @@
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 }
-};
Modified: trunk/source/utils/net_rpc_shell.c
===================================================================
--- trunk/source/utils/net_rpc_shell.c 2006-02-20 21:27:18 UTC (rev 13578)
+++ trunk/source/utils/net_rpc_shell.c 2006-02-20 21:58:33 UTC (rev 13579)
@@ -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 @@
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 @@
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 }
-};
More information about the samba-cvs
mailing list