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_lookup.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'source3/utils/net_lookup.c') diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c index b303abde56..658e904f59 100644 --- a/source3/utils/net_lookup.c +++ b/source3/utils/net_lookup.c @@ -109,7 +109,8 @@ static int net_lookup_ldap(struct net_context *c, int argc, const char **argv) sitename = sitename_fetch(domain); if ( (ctx = talloc_init("net_lookup_ldap")) == NULL ) { - d_fprintf(stderr,"net_lookup_ldap: talloc_init() ",_("failed"),"!\n"); + d_fprintf(stderr,"net_lookup_ldap: talloc_init() %s!\n", + _("failed")); SAFE_FREE(sitename); return -1; } @@ -305,12 +306,12 @@ static int net_lookup_kdc(struct net_context *c, int argc, const char **argv) return -1; } for (i=0;i\n")); + d_printf("%s\n%s", + _("Usage:"), + _(" net lookup name \n")); return -1; } @@ -344,7 +347,9 @@ static int net_lookup_sid(struct net_context *c, int argc, const char **argv) enum lsa_SidType type; if (argc != 1) { - d_printf(_("Usage:"), _(" net lookup sid \n")); + d_printf("%s\n%s", + _("Usage:"), + _(" net lookup sid \n")); return -1; } @@ -375,7 +380,9 @@ static int net_lookup_dsgetdcname(struct net_context *c, int argc, const char ** char *s = NULL; if (argc < 1 || argc > 3) { - d_printf(_("Usage:"), _(" net lookup dsgetdcname " + d_printf("%s\n%s", + _("Usage:"), + _(" net lookup dsgetdcname " " \n")); return -1; } -- cgit