diff options
| author | cheusov <cheusov@NetBSD.org> | 2021-03-18 18:24:14 +0000 |
|---|---|---|
| committer | cheusov <cheusov@NetBSD.org> | 2021-03-18 18:24:14 +0000 |
| commit | ea60ec120d23a4697cbb9be799aed49b2a063d62 (patch) | |
| tree | 57cde17713dbde43d220743e0b06a409df2deb3b | |
| parent | 3c3c90ae887d6284cd147119d2c35309413ea3c6 (diff) | |
find: use POSIX strtoll(3) instead of legacy strtoq(3)
| -rw-r--r-- | usr.bin/find/function.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index ffa2e437ebe..61a0e55713a 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -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 @@ find_parsenum(PLAN *plan, const char *option, const char *vp, char *endch) * 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)) |
