diff options
author | bde <bde@FreeBSD.org> | 1998-08-02 15:18:45 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-08-02 15:18:45 +0000 |
commit | dbc09be291ed507f26f3b2f3fbad6b02ef6bf476 (patch) | |
tree | 447936f1245497e41047f88a616f368a498ba092 /usr.bin/gencat | |
parent | 559a9a5f7d40627eaecd0fc3cd60b6d49c3853b9 (diff) | |
download | FreeBSD-src-dbc09be291ed507f26f3b2f3fbad6b02ef6bf476.zip FreeBSD-src-dbc09be291ed507f26f3b2f3fbad6b02ef6bf476.tar.gz |
Fixed printf format errors.
Diffstat (limited to 'usr.bin/gencat')
-rw-r--r-- | usr.bin/gencat/genlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/gencat/genlib.c b/usr.bin/gencat/genlib.c index a6321cb..68cc7f4 100644 --- a/usr.bin/gencat/genlib.c +++ b/usr.bin/gencat/genlib.c @@ -74,7 +74,7 @@ static void warning(cptr, msg) char *cptr; char *msg; { - warnx("%s on line %d\n%s", msg, lineno, curline); + warnx("%s on line %ld\n%s", msg, lineno, curline); if (cptr) { char *tptr; for (tptr = curline; tptr < cptr; ++tptr) putc(' ', stderr); @@ -877,7 +877,7 @@ FILE *fp; errx(1, "no catalog open"); for (set = cat->first; set; set = set->next) { - fprintf(fp, "$set %d", set->setId); + fprintf(fp, "$set %ld", set->setId); if (set->hconst) fprintf(fp, " # %s", set->hconst); fprintf(fp, "\n\n"); @@ -885,7 +885,7 @@ FILE *fp; for (msg = set->first; msg; msg = msg->next) { if (msg->hconst) fprintf(fp, "# %s\n", msg->hconst); - fprintf(fp, "%d\t%s\n", msg->msgId, msg->str); + fprintf(fp, "%ld\t%s\n", msg->msgId, msg->str); } fprintf(fp, "\n"); } |