From 66de52c4f4527ef43cfaf11c55616ec7602cce85 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Tue, 19 Jan 2010 11:43:54 +0100 Subject: s3 net: Fix compile warnings --- source3/utils/net_rpc_rights.c | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'source3/utils/net_rpc_rights.c') 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 " - "\n")); + d_printf("%s\n%s", + _("Usage:"), + _(" net rpc rights grant \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 " - "\n")); + d_printf("%s\n%s", + _("Usage:"), + _(" net rpc rights revoke \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 \n" + d_printf("%s\n%s", + _("Usage:"), + _("net rpc rights grant \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 \n" + d_printf("%s\n%s", + _("Usage:"), + _("net rpc rights revoke \n" " Revoke privilege[s]\n")); d_printf(_("For example:\n" " net rpc rights revoke 'VALE\\biddle' " -- cgit