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_lookup.c | |
parent | 7d04c0fcfdd6cd52ce99d94cbe42fb698b7a0674 (diff) | |
download | samba-66de52c4f4527ef43cfaf11c55616ec7602cce85.tar.gz |
s3 net: Fix compile warnings
Diffstat (limited to 'source3/utils/net_lookup.c')
-rw-r--r-- | source3/utils/net_lookup.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c index b303abde562..658e904f59b 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<num_kdcs;i++) - if (addrs[i].sin_family == AF_INET) + if (addrs[i].sin_family == AF_INET) d_printf("%s:%hd\n", inet_ntoa(addrs[i].sin_addr), ntohs(addrs[i].sin_port)); return 0; -#endif +#endif DEBUG(1, ("No kerberos support\n")); return -1; } @@ -322,7 +323,9 @@ static int net_lookup_name(struct net_context *c, int argc, const char **argv) enum lsa_SidType type; if (argc != 1) { - d_printf(_("Usage:"), _(" net lookup name <name>\n")); + d_printf("%s\n%s", + _("Usage:"), + _(" net lookup name <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 <sid>\n")); + d_printf("%s\n%s", + _("Usage:"), + _(" net lookup sid <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 " "<name> <flags> <sitename>\n")); return -1; } |