summaryrefslogtreecommitdiff
path: root/source3/utils/profiles.c
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2005-08-30 06:41:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:26 -0500
commit8c072021efba737539b46e993df0c21a6438a82a (patch)
tree444cbd7b0072955e7bde133aa95cec047cb89247 /source3/utils/profiles.c
parent39c05dca3c52a74924a2baccab68e289cf48ce35 (diff)
downloadsamba-8c072021efba737539b46e993df0c21a6438a82a.tar.gz
samba-8c072021efba737539b46e993df0c21a6438a82a.tar.bz2
samba-8c072021efba737539b46e993df0c21a6438a82a.zip
r9780: Clean up a bunch of compiler warnings.
(This used to be commit 623d2e69319ffead31a780a4d6156dae45f386d7)
Diffstat (limited to 'source3/utils/profiles.c')
-rw-r--r--source3/utils/profiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c
index 52970bdffc..6bf9e44a14 100644
--- a/source3/utils/profiles.c
+++ b/source3/utils/profiles.c
@@ -188,7 +188,7 @@ int main( int argc, char *argv[] )
exit(1);
}
- if ((!change & new_val) || (change & !new_val)) {
+ if ((!change && new_val) || (change && !new_val)) {
fprintf(stderr, "You must specify both -c and -n if one or the other is set!\n");
poptPrintUsage(pc, stderr, 0);
exit(252);
@@ -225,5 +225,5 @@ int main( int argc, char *argv[] )
poptFreeContext(pc);
- exit( 0 );
+ return( 0 );
}