summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_rights.c
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-01-19 11:43:54 +0100
committerKai Blin <kai@samba.org>2010-01-19 14:48:34 +0100
commit66de52c4f4527ef43cfaf11c55616ec7602cce85 (patch)
treec0195d1bb09fb5e8a8d87e3a32f2cc1d06756502 /source3/utils/net_rpc_rights.c
parent7d04c0fcfdd6cd52ce99d94cbe42fb698b7a0674 (diff)
downloadsamba-66de52c4f4527ef43cfaf11c55616ec7602cce85.tar.gz
samba-66de52c4f4527ef43cfaf11c55616ec7602cce85.tar.bz2
samba-66de52c4f4527ef43cfaf11c55616ec7602cce85.zip
s3 net: Fix compile warnings
Diffstat (limited to 'source3/utils/net_rpc_rights.c')
-rw-r--r--source3/utils/net_rpc_rights.c29
1 files changed, 17 insertions, 12 deletions
diff --git a/source3/utils/net_rpc_rights.c b/source3/utils/net_rpc_rights.c
index 355a226198..8555154471 100644
--- a/source3/utils/net_rpc_rights.c
+++ b/source3/utils/net_rpc_rights.c
@@ -413,8 +413,8 @@ static NTSTATUS rpc_rights_list_internal(struct net_context *c,
/* backward comaptibility: if no keyword provided, treat the key
as an account name */
if (argc > 1) {
- d_printf(_("Usage:")," net rpc rights list [[accounts|privileges] "
- "[name|SID]]\n");
+ d_printf("%s net rpc rights list [[accounts|privileges] "
+ "[name|SID]]\n", _("Usage:"));
result = NT_STATUS_OK;
goto done;
}
@@ -451,8 +451,9 @@ static NTSTATUS rpc_rights_grant_internal(struct net_context *c,
DOM_SID sid;
if (argc < 2 ) {
- d_printf(_("Usage:"),_(" net rpc rights grant <name|SID> "
- "<rights...>\n"));
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _(" net rpc rights grant <name|SID> <rights...>\n"));
return NT_STATUS_OK;
}
@@ -521,8 +522,9 @@ static NTSTATUS rpc_rights_revoke_internal(struct net_context *c,
int i;
if (argc < 2 ) {
- d_printf(_("Usage:"),_(" net rpc rights revoke <name|SID> "
- "<rights...>\n"));
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _(" net rpc rights revoke <name|SID> <rights...>\n"));
return NT_STATUS_OK;
}
@@ -577,8 +579,9 @@ done:
static int rpc_rights_list(struct net_context *c, int argc, const char **argv )
{
if (c->display_usage) {
- d_printf(_("Usage:\n"),
- _("net rpc rights list [{accounts|privileges} "
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _("net rpc rights list [{accounts|privileges} "
"[name|SID]]\n"
" View available/assigned privileges\n"));
return 0;
@@ -594,8 +597,9 @@ static int rpc_rights_list(struct net_context *c, int argc, const char **argv )
static int rpc_rights_grant(struct net_context *c, int argc, const char **argv )
{
if (c->display_usage) {
- d_printf(_("Usage:\n"),
- _("net rpc rights grant <name|SID> <right>\n"
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _("net rpc rights grant <name|SID> <right>\n"
" Assign privilege[s]\n"));
d_printf(_("For example:\n"
" net rpc rights grant 'VALE\\biddle' "
@@ -615,8 +619,9 @@ static int rpc_rights_grant(struct net_context *c, int argc, const char **argv )
static int rpc_rights_revoke(struct net_context *c, int argc, const char **argv)
{
if (c->display_usage) {
- d_printf(_("Usage:\n"),
- _("net rpc rights revoke <name|SID> <right>\n"
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _("net rpc rights revoke <name|SID> <right>\n"
" Revoke privilege[s]\n"));
d_printf(_("For example:\n"
" net rpc rights revoke 'VALE\\biddle' "