summaryrefslogtreecommitdiffstats
path: root/usr.bin/cut/cut.c
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-06-07 02:57:58 +0000
committerdd <dd@FreeBSD.org>2001-06-07 02:57:58 +0000
commitb10afe2606f64b9c728011eef198b5998dfe418e (patch)
tree686b793fdaab54d41dccf84466a5378e26d2c028 /usr.bin/cut/cut.c
parent7e284cc83d80d0acc577afdc9e2c2ff31a2b278a (diff)
downloadFreeBSD-src-b10afe2606f64b9c728011eef198b5998dfe418e.zip
FreeBSD-src-b10afe2606f64b9c728011eef198b5998dfe418e.tar.gz
Silence the remaining warnings and clamp down with WARNS=2.
Not objected to by: -audit
Diffstat (limited to 'usr.bin/cut/cut.c')
-rw-r--r--usr.bin/cut/cut.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cut/cut.c b/usr.bin/cut/cut.c
index 373ff4a..bb7f51f 100644
--- a/usr.bin/cut/cut.c
+++ b/usr.bin/cut/cut.c
@@ -172,8 +172,8 @@ get_list(list)
if (!stop || !start)
errx(1, "[-cf] list: values may not include zero");
if (stop > _POSIX2_LINE_MAX)
- errx(1, "[-cf] list: %d too large (max %d)",
- stop, _POSIX2_LINE_MAX);
+ errx(1, "[-cf] list: %ld too large (max %d)",
+ (long)stop, _POSIX2_LINE_MAX);
if (maxval < stop)
maxval = stop;
for (pos = positions + start; start++ <= stop; *pos++ = 1);
@@ -223,7 +223,7 @@ c_cut(fp, fname)
void
f_cut(fp, fname)
FILE *fp;
- const char *fname;
+ const char *fname __unused;
{
int ch, field, isdelim;
char *pos, *p, sep;
OpenPOWER on IntegriCloud