summaryrefslogtreecommitdiff
path: root/source3/utils/net_idmap.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_idmap.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_idmap.c')
-rw-r--r--source3/utils/net_idmap.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/source3/utils/net_idmap.c b/source3/utils/net_idmap.c
index d1400db553..32680e0dee 100644
--- a/source3/utils/net_idmap.c
+++ b/source3/utils/net_idmap.c
@@ -61,8 +61,9 @@ static int net_idmap_dump(struct net_context *c, int argc, const char **argv)
TDB_CONTEXT *idmap_tdb;
if ( argc != 1 || c->display_usage) {
- d_printf(_("Usage:\n"),
- _("net idmap dump <inputfile>\n"
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _("net idmap dump <inputfile>\n"
" Dump current ID mapping.\n"
" inputfile\tTDB file to read mappings from.\n"));
return c->display_usage?0:-1;
@@ -92,8 +93,9 @@ static int net_idmap_restore(struct net_context *c, int argc, const char **argv)
FILE *input;
if (c->display_usage) {
- d_printf(_("Usage:\n"),
- _("net idmap restore [inputfile]\n"
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _("net idmap restore [inputfile]\n"
" Restore ID mappings from file\n"
" inputfile\tFile to load ID mappings from. If "
"not given, load data from stdin.\n"));
@@ -194,13 +196,13 @@ static int net_idmap_restore(struct net_context *c, int argc, const char **argv)
**********************************************************/
static int net_idmap_delete(struct net_context *c, int argc, const char **argv)
{
- d_printf(_("Not implemented yet"),"\n");
+ d_printf("%s\n", _("Not implemented yet"));
return -1;
}
static int net_idmap_set(struct net_context *c, int argc, const char **argv)
{
- d_printf(_("Not implemented yet"),"\n");
+ d_printf("%s\n", _("Not implemented yet"));
return -1;
}
bool idmap_store_secret(const char *backend, bool alloc,
@@ -238,8 +240,9 @@ static int net_idmap_secret(struct net_context *c, int argc, const char **argv)
bool ret;
if (argc != 2 || c->display_usage) {
- d_printf(_("Usage:\n"),
- _("net idmap secret {<DOMAIN>|alloc} <secret>\n"
+ d_printf("%s\n%s",
+ _("Usage:"),
+ _("net idmap secret {<DOMAIN>|alloc} <secret>\n"
" Set the secret for the specified domain "
"(or alloc module)\n"
" DOMAIN\tDomain to set secret for.\n"
@@ -337,8 +340,8 @@ static int net_idmap_aclmapset(struct net_context *c, int argc, const char **arg
NTSTATUS status;
if (argc != 3 || c->display_usage) {
- d_fprintf(stderr, _("Usage:")," net idmap aclmapset <tdb> "
- "<src-sid> <dst-sid>\n");
+ d_fprintf(stderr, "%s net idmap aclmapset <tdb> "
+ "<src-sid> <dst-sid>\n", _("Usage:"));
return -1;
}