Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/head If the negative number is passed to option '-c'...
details: https://anonhg.NetBSD.org/src/rev/fd138124e0ba
branches: trunk
changeset: 345187:fd138124e0ba
user: nonaka <nonaka%NetBSD.org@localhost>
date: Thu May 12 01:56:44 2016 +0000
description:
If the negative number is passed to option '-c' or '-n',
it should occur an error.
diffstat:
usr.bin/head/head.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 834b9407c78b -r fd138124e0ba usr.bin/head/head.c
--- a/usr.bin/head/head.c Thu May 12 00:35:10 2016 +0000
+++ b/usr.bin/head/head.c Thu May 12 01:56:44 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: head.c,v 1.23 2010/03/31 21:55:23 joerg Exp $ */
+/* $NetBSD: head.c,v 1.24 2016/05/12 01:56:44 nonaka Exp $ */
/*
* Copyright (c) 1980, 1987, 1992, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)head.c 8.2 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: head.c,v 1.23 2010/03/31 21:55:23 joerg Exp $");
+__RCSID("$NetBSD: head.c,v 1.24 2016/05/12 01:56:44 nonaka Exp $");
#endif
#endif /* not lint */
@@ -73,8 +73,8 @@
int ch;
FILE *fp;
int first;
- uintmax_t linecnt;
- uintmax_t bytecnt;
+ intmax_t linecnt;
+ intmax_t bytecnt;
char *ep;
int eval = 0;
int qflag = 0;
Home |
Main Index |
Thread Index |
Old Index