Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/cmp cmp.c: use C99 strtoll(3) instead of legacy strt...
details: https://anonhg.NetBSD.org/src/rev/24c6bc0b23de
branches: trunk
changeset: 953770:24c6bc0b23de
user: cheusov <cheusov%NetBSD.org@localhost>
date: Sat Mar 20 14:27:47 2021 +0000
description:
cmp.c: use C99 strtoll(3) instead of legacy strtoq(3)
diffstat:
usr.bin/cmp/cmp.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 805d3ca32f09 -r 24c6bc0b23de usr.bin/cmp/cmp.c
--- a/usr.bin/cmp/cmp.c Sat Mar 20 14:17:56 2021 +0000
+++ b/usr.bin/cmp/cmp.c Sat Mar 20 14:27:47 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cmp.c,v 1.20 2016/10/30 19:33:49 christos Exp $ */
+/* $NetBSD: cmp.c,v 1.21 2021/03/20 14:27:47 cheusov Exp $ */
/*
* Copyright (c) 1987, 1990, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)cmp.c 8.3 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: cmp.c,v 1.20 2016/10/30 19:33:49 christos Exp $");
+__RCSID("$NetBSD: cmp.c,v 1.21 2021/03/20 14:27:47 cheusov Exp $");
#endif
#endif /* not lint */
@@ -125,12 +125,12 @@
char *ep;
errno = 0;
- skip1 = strtoq(argv[2], &ep, 0);
+ skip1 = (off_t)strtoll(argv[2], &ep, 0);
if (errno || ep == argv[2])
usage();
if (argc == 4) {
- skip2 = strtoq(argv[3], &ep, 0);
+ skip2 = (off_t)strtoll(argv[3], &ep, 0);
if (errno || ep == argv[3])
usage();
}
Home |
Main Index |
Thread Index |
Old Index