diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-01-19 16:12:05 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-01-19 16:12:05 +0000 |
commit | c585ffdfe1209a05296db7b67184b267c81d9321 (patch) | |
tree | 7c6a12fa06803e01278cc5e8bc0b1072431c556e /usr.bin/grep/util.c | |
parent | 8f42c813a0defdb15100ea4e5113186d80390544 (diff) |
Use off_t for file sizes, and don't forget to print a ':' when using
the -b option.
ok millert@
Diffstat (limited to 'usr.bin/grep/util.c')
-rw-r--r-- | usr.bin/grep/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/grep/util.c b/usr.bin/grep/util.c index a5ee22c9127..341d787ce44 100644 --- a/usr.bin/grep/util.c +++ b/usr.bin/grep/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.20 2004/01/18 19:01:55 espie Exp $ */ +/* $OpenBSD: util.c,v 1.21 2004/01/19 16:12:04 otto Exp $ */ /*- * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav @@ -517,7 +517,8 @@ printline(str_t *line, int sep) if (bflag) { if (n) putchar(sep); - printf("%lu", (unsigned long)line->off); + printf("%lld", (long long)line->off); + ++n; } if (n) putchar(sep); |