NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/58208 CVS commit: src/lib/libc/locale
The following reply was made to PR lib/58208; it has been noted by GNATS.
From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/58208 CVS commit: src/lib/libc/locale
Date: Fri, 4 Apr 2025 21:52:19 +0000
Module Name: src
Committed By: riastradh
Date: Fri Apr 4 21:52:19 UTC 2025
Modified Files:
src/lib/libc/locale: rune.c
Log Message:
libc/locale/rune.c: Pacify lint.
sysconf(_SC_PAGESIZE) returns long. In principle it could fail but
in reality it will never fail on NetBSD unless something is severely
broken, so it's better not to clutter callers with error branches.
And the result will always fit in int, but lint doesn't know that, so
just say unsigned long to match the size of what sysconf returns.
This way, lint won't complain about possible integer truncation
(which is not, in fact, possible).
PR lib/58208: ctype(3) provides poor runtime feedback of abuse
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/lib/libc/locale/rune.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index