Remove handrolled strcmp()'s

Favor readability over bare-metal.
This commit is contained in:
FRIGN
2015-05-19 17:44:15 +02:00
committed by sin
parent 1797df01e7
commit 9a074144c9
21 changed files with 31 additions and 21 deletions

View File

@@ -116,7 +116,7 @@ main(int argc, char *argv[])
dsc = ereallocarray(NULL, argc, sizeof(*dsc));
for (i = 0; i < argc; i++) {
if (argv[i][0] == '-' && !argv[i][1]) {
if (!strcmp(argv[i], "-")) {
argv[i] = "<stdin>";
dsc[i].fp = stdin;
} else if (!(dsc[i].fp = fopen(argv[i], "r"))) {