X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/8276a9c565bc29afbc6cc120dfde0801c06c2bbd..4741bd9fa1f6dfc9f6482d6e1335ad046dbd6a78:/progs/rspit.c diff --git a/progs/rspit.c b/progs/rspit.c index 9781333e..812525fc 100644 --- a/progs/rspit.c +++ b/progs/rspit.c @@ -27,6 +27,8 @@ /*----- Header files ------------------------------------------------------*/ +#define _FILE_OFFSET_BITS 64 + #include "config.h" #include @@ -45,6 +47,7 @@ #include #include +#include #include #include #include @@ -433,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"); @@ -1589,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;