diff options
author | Keith Kanios <spook@dynatos.net> | 2007-04-14 01:24:14 +0000 |
---|---|---|
committer | Keith Kanios <spook@dynatos.net> | 2007-04-14 01:24:14 +0000 |
commit | 47776ac52561c4694976bedecbf0e82635370dfc (patch) | |
tree | 5cdbb1f5a5cc6d6af098e609888316ce34467ef3 /rdoff/rdflib.c | |
parent | c7ae18dba1c3085dc8cd12a6fdcbfc59eda8bf1c (diff) | |
download | nasm-47776ac52561c4694976bedecbf0e82635370dfc.tar.gz nasm-47776ac52561c4694976bedecbf0e82635370dfc.tar.bz2 nasm-47776ac52561c4694976bedecbf0e82635370dfc.zip |
c99 printf/fprintf compliance.
Diffstat (limited to 'rdoff/rdflib.c')
-rw-r--r-- | rdoff/rdflib.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rdoff/rdflib.c b/rdoff/rdflib.c index 9070e7c..bfb2b2b 100644 --- a/rdoff/rdflib.c +++ b/rdoff/rdflib.c @@ -70,6 +70,8 @@ static void int32_ttolocal(int32_t *l) t = p[1]; p[1] = p[2]; p[2] = p[1]; +#else + (void)l; /* placate optimizers */ #endif } @@ -245,14 +247,14 @@ int main(int argc, char **argv) l = copyint32_t(fp, fp2); if (argv[1][0] == 't') - printf(" %ld bytes content\n", l); + printf(" %"PRId32" bytes content\n", l); copybytes(fp, fp2, l); } else if ((c = copybytes(fp, fp2, 6)) >= '2') { /* version 2 or above */ l = copyint32_t(fp, fp2); if (argv[1][0] == 't') - printf("RDOFF%c %ld bytes content\n", c, l); + printf("RDOFF%c %"PRId32" bytes content\n", c, l); copybytes(fp, fp2, l); /* entire object */ } else { if (argv[1][0] == 't') |