From 8c072021efba737539b46e993df0c21a6438a82a Mon Sep 17 00:00:00 2001 From: James Peach Date: Tue, 30 Aug 2005 06:41:32 +0000 Subject: r9780: Clean up a bunch of compiler warnings. (This used to be commit 623d2e69319ffead31a780a4d6156dae45f386d7) --- source3/utils/profiles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/utils') 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 ); } -- cgit