From 6abef0810007c317c3ee866eb3933ce2c696085f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 12 May 2003 21:27:54 +0000 Subject: Fix obvious compiler warnings. Jeremy. (This used to be commit 2a6d0c2481c3c34351e57c30a85004babdbf99b0) --- source3/utils/net_ads.c | 2 +- source3/utils/pdbedit.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index 1a50f9d270..626db96994 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -159,7 +159,7 @@ retry: * extract the realm and convert to upper case. * This is only used to establish the connection. */ - if (cp = strchr(ads->auth.user_name, '@')) { + if ((cp = strchr(ads->auth.user_name, '@'))!=0) { *cp++ = '\0'; ads->auth.realm = smb_xstrdup(cp); strupper(ads->auth.realm); diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index 13f35e8880..9a45049bc5 100644 --- a/source3/utils/pdbedit.c +++ b/source3/utils/pdbedit.c @@ -112,7 +112,6 @@ static int export_groups (struct pdb_context *in, struct pdb_context *out) { static int print_sam_info (SAM_ACCOUNT *sam_pwent, BOOL verbosity, BOOL smbpwdstyle) { uid_t uid; - gid_t gid; time_t tmp; /* TODO: chaeck if entry is a user or a workstation */ -- cgit