aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/config.c b/config.c
index c5987a9..d040b94 100644
--- a/config.c
+++ b/config.c
@@ -14,10 +14,11 @@ inline int puts_if(const char *s, int c) {
}
int main(int argc, char **argv) {
- int i, n = 0;
+ int i;
+ unsigned int n = 0;
for (i = 1; i < argc; i++) {
- switch (argv[i][0] != '-' || argv[i][2] ? -1 : argv[i][1]) {
+ switch ((argv[i][0] != '-' || argv[i][2] != '\0') ? -1 : argv[i][1]) {
case 'D':
n += PUT_MACRO(EXIF_SUPPORT);
n += PUT_MACRO(GIF_SUPPORT);
@@ -31,7 +32,7 @@ int main(int argc, char **argv) {
return 1;
}
}
- if (n)
+ if (n > 0)
printf("\n");
return 0;
}