~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb]
/
progs
/
rspit.c
diff --git
a/progs/rspit.c
b/progs/rspit.c
index
66a0538
..
812525f
100644
(file)
--- a/
progs/rspit.c
+++ b/
progs/rspit.c
@@
-47,6
+47,7
@@
#include <mLib/darray.h>
#include <mLib/dstr.h>
#include <mLib/darray.h>
#include <mLib/dstr.h>
+#include <mLib/macros.h>
#include <mLib/mdwopt.h>
#include <mLib/quis.h>
#include <mLib/report.h>
#include <mLib/mdwopt.h>
#include <mLib/quis.h>
#include <mLib/report.h>
@@
-435,7
+436,7
@@
static int opt(void)
case 'o':
if (flags & f_file)
die(EXIT_FAILURE, "already set an output file");
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");
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++) {
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;
if (gg->name[sz] == 0) {
g = gg;
break;