~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
base/asm-common.h (x86), and knock-on: Add macros for full-size regs.
[catacomb]
/
progs
/
rspit.c
diff --git
a/progs/rspit.c
b/progs/rspit.c
index
9781333
..
812525f
100644
(file)
--- a/
progs/rspit.c
+++ b/
progs/rspit.c
@@
-27,6
+27,8
@@
/*----- Header files ------------------------------------------------------*/
/*----- Header files ------------------------------------------------------*/
+#define _FILE_OFFSET_BITS 64
+
#include "config.h"
#include <assert.h>
#include "config.h"
#include <assert.h>
@@
-45,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>
@@
-433,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");
@@
-1589,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;