Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/find find: use POSIX strtoll(3) instead of legacy st...



details:   https://anonhg.NetBSD.org/src/rev/72c5c634aa89
branches:  trunk
changeset: 953717:72c5c634aa89
user:      cheusov <cheusov%NetBSD.org@localhost>
date:      Thu Mar 18 18:24:14 2021 +0000

description:
find: use POSIX strtoll(3) instead of legacy strtoq(3)

diffstat:

 usr.bin/find/function.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 74e7cdd99b7d -r 72c5c634aa89 usr.bin/find/function.c
--- a/usr.bin/find/function.c   Thu Mar 18 18:21:18 2021 +0000
+++ b/usr.bin/find/function.c   Thu Mar 18 18:24:14 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: function.c,v 1.78 2021/03/18 18:21:18 cheusov Exp $    */
+/*     $NetBSD: function.c,v 1.79 2021/03/18 18:24:14 cheusov Exp $    */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "from: @(#)function.c   8.10 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: function.c,v 1.78 2021/03/18 18:21:18 cheusov Exp $");
+__RCSID("$NetBSD: function.c,v 1.79 2021/03/18 18:24:14 cheusov Exp $");
 #endif
 #endif /* not lint */
 
@@ -181,7 +181,7 @@
         * and endchar points to the beginning of the string we know we have
         * a syntax error.
         */
-       value = strtoq(str, &endchar, 10);
+       value = strtoll(str, &endchar, 10);
        if (value == 0 && endchar == str)
                errx(1, "%s: %s: illegal numeric value", option, vp);
        if (endchar[0] && (endch == NULL || endchar[0] != *endch))



Home | Main Index | Thread Index | Old Index