diff options
author | Kai Blin <kai@samba.org> | 2010-01-19 11:43:54 +0100 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2010-01-19 14:48:34 +0100 |
commit | 66de52c4f4527ef43cfaf11c55616ec7602cce85 (patch) | |
tree | c0195d1bb09fb5e8a8d87e3a32f2cc1d06756502 /source3/utils/net_cache.c | |
parent | 7d04c0fcfdd6cd52ce99d94cbe42fb698b7a0674 (diff) | |
download | samba-66de52c4f4527ef43cfaf11c55616ec7602cce85.tar.gz samba-66de52c4f4527ef43cfaf11c55616ec7602cce85.tar.bz2 samba-66de52c4f4527ef43cfaf11c55616ec7602cce85.zip |
s3 net: Fix compile warnings
Diffstat (limited to 'source3/utils/net_cache.c')
-rw-r--r-- | source3/utils/net_cache.c | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/source3/utils/net_cache.c b/source3/utils/net_cache.c index 41bf7ef1c7..fef269d77d 100644 --- a/source3/utils/net_cache.c +++ b/source3/utils/net_cache.c @@ -155,8 +155,9 @@ static int net_cache_add(struct net_context *c, int argc, const char **argv) time_t timeout; if (argc < 3 || c->display_usage) { - d_printf("\n",_("Usage:\n"), - _("net cache add <key string> <data string> " + d_printf("%s\n%s", + _("Usage:"), + _("net cache add <key string> <data string> " "<timeout>\n")); return -1; } @@ -193,7 +194,9 @@ static int net_cache_del(struct net_context *c, int argc, const char **argv) const char *keystr = argv[0]; if (argc < 1 || c->display_usage) { - d_printf("\n",_("Usage:"), _(" net cache del <key string>\n")); + d_printf("%s\n%s", + _("Usage:"), + _(" net cache del <key string>\n")); return -1; } @@ -221,7 +224,9 @@ static int net_cache_get(struct net_context *c, int argc, const char **argv) time_t timeout; if (argc < 1 || c->display_usage) { - d_printf("\n", _("Usage:"), _(" net cache get <key>\n")); + d_printf("%s\n%s", + _("Usage:"), + _(" net cache get <key>\n")); return -1; } @@ -248,7 +253,9 @@ static int net_cache_search(struct net_context *c, int argc, const char **argv) const char* pattern; if (argc < 1 || c->display_usage) { - d_printf(_("Usage:"), _(" net cache search <pattern>\n")); + d_printf("%s\n%s", + _("Usage:"), + _(" net cache search <pattern>\n")); return -1; } @@ -270,9 +277,11 @@ static int net_cache_list(struct net_context *c, int argc, const char **argv) const char* pattern = "*"; if (c->display_usage) { - d_printf(_("Usage:\n"), + d_printf( "%s\n" "net cache list\n" - " ", _("List all cache entries.\n")); + " %s\n", + _("Usage:"), + _("List all cache entries.")); return 0; } gencache_iterate(print_cache_entry, NULL, pattern); @@ -291,9 +300,11 @@ static int net_cache_flush(struct net_context *c, int argc, const char **argv) { const char* pattern = "*"; if (c->display_usage) { - d_printf(_("Usage:\n"), + d_printf( "%s\n" "net cache flush\n" - " ", _("Delete all cache entries.\n")); + " %s", + _("Usage:"), + _("Delete all cache entries.")); return 0; } gencache_iterate(delete_cache_entry, NULL, pattern); @@ -304,9 +315,11 @@ static int net_cache_stabilize(struct net_context *c, int argc, const char **argv) { if (c->display_usage) { - d_printf(_("Usage:\n"), - "net cache flush\n" - " ", _("Delete all cache entries.\n")); + d_printf( "%s\n" + "net cache stabilize\n" + " %s\n", + _("Usage:"), + _("Move transient cache content to stable storage")); return 0; } |