summaryrefslogtreecommitdiff
path: root/source3/utils/net_conf.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_conf.c
parent7d04c0fcfdd6cd52ce99d94cbe42fb698b7a0674 (diff)
downloadsamba-66de52c4f4527ef43cfaf11c55616ec7602cce85.tar.gz
s3 net: Fix compile warnings
Diffstat (limited to 'source3/utils/net_conf.c')
-rw-r--r--source3/utils/net_conf.c46
1 files changed, 33 insertions, 13 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 74c72a5292d..e6e8e525817 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -39,14 +39,16 @@
static int net_conf_list_usage(struct net_context *c, int argc,
const char **argv)
{
- d_printf(_("Usage:"), " net conf list\n");
+ d_printf("%s net conf list\n", _("Usage:"));
return -1;
}
static int net_conf_import_usage(struct net_context *c, int argc,
const char**argv)
{
- d_printf(_("Usage:"), _(" net conf import [--test|-T] <filename> "
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _(" net conf import [--test|-T] <filename> "
"[<servicename>]\n"
"\t[--test|-T] testmode - do not act, just print "
"what would be done\n"
@@ -58,28 +60,32 @@ static int net_conf_import_usage(struct net_context *c, int argc,
static int net_conf_listshares_usage(struct net_context *c, int argc,
const char **argv)
{
- d_printf(_("Usage:"), " net conf listshares\n");
+ d_printf("%s\nnet conf listshares\n", _("Usage:"));
return -1;
}
static int net_conf_drop_usage(struct net_context *c, int argc,
const char **argv)
{
- d_printf(_("Usage:"), " net conf drop\n");
+ d_printf("%s\nnet conf drop\n", _("Usage:"));
return -1;
}
static int net_conf_showshare_usage(struct net_context *c, int argc,
const char **argv)
{
- d_printf(_("Usage:"), _(" net conf showshare <sharename>\n"));
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _("net conf showshare <sharename>\n"));
return -1;
}
static int net_conf_addshare_usage(struct net_context *c, int argc,
const char **argv)
{
- d_printf(_("Usage:"), _(" net conf addshare <sharename> <path> "
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _(" net conf addshare <sharename> <path> "
"[writeable={y|N} [guest_ok={y|N} [<comment>]]\n"
"\t<sharename> the new share name.\n"
"\t<path> the path on the filesystem to export.\n"
@@ -94,49 +100,63 @@ static int net_conf_addshare_usage(struct net_context *c, int argc,
static int net_conf_delshare_usage(struct net_context *c, int argc,
const char **argv)
{
- d_printf(_("Usage:"), _(" net conf delshare <sharename>\n"));
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _("net conf delshare <sharename>\n"));
return -1;
}
static int net_conf_setparm_usage(struct net_context *c, int argc,
const char **argv)
{
- d_printf(_("Usage:"), _(" net conf setparm <section> <param> <value>\n"));
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _(" net conf setparm <section> <param> <value>\n"));
return -1;
}
static int net_conf_getparm_usage(struct net_context *c, int argc,
const char **argv)
{
- d_printf(_("Usage:"), _(" net conf getparm <section> <param>\n"));
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _(" net conf getparm <section> <param>\n"));
return -1;
}
static int net_conf_delparm_usage(struct net_context *c, int argc,
const char **argv)
{
- d_printf(_("Usage:"), _(" net conf delparm <section> <param>\n"));
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _(" net conf delparm <section> <param>\n"));
return -1;
}
static int net_conf_getincludes_usage(struct net_context *c, int argc,
const char **argv)
{
- d_printf(_("Usage:"), _(" net conf getincludes <section>\n"));
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _(" net conf getincludes <section>\n"));
return -1;
}
static int net_conf_setincludes_usage(struct net_context *c, int argc,
const char **argv)
{
- d_printf(_("Usage:"), _(" net conf setincludes <section> [<filename>]*\n"));
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _(" net conf setincludes <section> [<filename>]*\n"));
return -1;
}
static int net_conf_delincludes_usage(struct net_context *c, int argc,
const char **argv)
{
- d_printf(_("Usage:"), _(" net conf delincludes <section>\n"));
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _(" net conf delincludes <section>\n"));
return -1;
}