X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/68ea1def22170f19da0ac7e590560a003704ae7e..1519ef6617fd7351bd40026b9eeb47c7f7f42234:/progs/rspit.c diff --git a/progs/rspit.c b/progs/rspit.c index 66a05389..812525fc 100644 --- a/progs/rspit.c +++ b/progs/rspit.c @@ -47,6 +47,7 @@ #include #include +#include #include #include #include @@ -435,7 +436,7 @@ static int opt(void) case 'o': if (flags & f_file) die(EXIT_FAILURE, "already set an output file"); - if (strcmp(optarg, "-") == 0) + if (STRCMP(optarg, ==, "-")) outfp = stdout; else { outfp = fopen(optarg, "w"); @@ -1591,7 +1592,7 @@ int main(int ac, char *av[]) g = 0; for (gg = generators; gg->name; gg++) { - if (strncmp(arg, gg->name, sz) == 0) { + if (STRNCMP(arg, ==, gg->name, sz)) { if (gg->name[sz] == 0) { g = gg; break;