diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -104,7 +104,7 @@ msg(enum debug_lvl lvl, const char *fmt, va_list ap) break; } - if (!strcmp(e, "dumb")) { + if (streq(e, "dumb")) { sd_daemon = false; use_colors = false; break; @@ -432,10 +432,10 @@ cfg_init(int argc, char **argv) } case 'd': - if (!strcasecmp(optarg, "all")) { + if (strcaseeq(optarg, "all")) { debug_mask = ~0; break; - } else if (!strcasecmp(optarg, "list")) { + } else if (strcaseeq(optarg, "list")) { error("Debug categories:"); error(" * all"); for (i = 0; debug_category_str[i].name; i++) @@ -444,7 +444,7 @@ cfg_init(int argc, char **argv) } for (i = 0; debug_category_str[i].name; i++) { - if (!strcasecmp(optarg, debug_category_str[i].name)) + if (strcaseeq(optarg, debug_category_str[i].name)) break; } |