Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 lint: replace obsolete strtouq with equi...
details: https://anonhg.NetBSD.org/src/rev/935aa118ee7c
branches: trunk
changeset: 1023181:935aa118ee7c
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Aug 28 18:58:24 2021 +0000
description:
lint: replace obsolete strtouq with equivalent strtoull
diffstat:
usr.bin/xlint/lint1/lex.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 0b2ab272a3ec -r 935aa118ee7c usr.bin/xlint/lint1/lex.c
--- a/usr.bin/xlint/lint1/lex.c Sat Aug 28 18:40:15 2021 +0000
+++ b/usr.bin/xlint/lint1/lex.c Sat Aug 28 18:58:24 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex.c,v 1.74 2021/08/28 15:01:43 rillig Exp $ */
+/* $NetBSD: lex.c,v 1.75 2021/08/28 18:58:24 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: lex.c,v 1.74 2021/08/28 15:01:43 rillig Exp $");
+__RCSID("$NetBSD: lex.c,v 1.75 2021/08/28 18:58:24 rillig Exp $");
#endif
#include <ctype.h>
@@ -512,6 +512,9 @@
bool warned = false;
#ifdef TARG_INT128_MAX
__uint128_t uq = 0;
+ /* FIXME: INT128 doesn't belong here. */
+ /* TODO: const */
+ /* TODO: remove #ifdef */
static tspec_t contypes[2][4] = {
{ INT, LONG, QUAD, INT128, },
{ UINT, ULONG, UQUAD, UINT128, }
@@ -561,7 +564,7 @@
errno = 0;
- uq = strtouq(cp, &eptr, base);
+ uq = strtoull(cp, &eptr, base);
lint_assert(eptr == cp + len);
if (errno != 0) {
/* integer constant out of range */
Home |
Main Index |
Thread Index |
Old Index