Source-Changes-HG archive

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

[src/netbsd-7]: src/common/lib/libc/stdlib Pull up following revision(s) (req...



details:   https://anonhg.NetBSD.org/src/rev/30ae30bbd739
branches:  netbsd-7
changeset: 800070:30ae30bbd739
user:      snj <snj%NetBSD.org@localhost>
date:      Sun Dec 18 06:23:22 2016 +0000

description:
Pull up following revision(s) (requested by riastradh in ticket #1310):
        common/lib/libc/stdlib/_strtoul.h: revision 1.10
Set *endptr in all paths out of strtoul and family.
XXX pullup-6
XXX pullup-7

diffstat:

 common/lib/libc/stdlib/_strtoul.h |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 82b261ceee81 -r 30ae30bbd739 common/lib/libc/stdlib/_strtoul.h
--- a/common/lib/libc/stdlib/_strtoul.h Wed Dec 14 19:33:33 2016 +0000
+++ b/common/lib/libc/stdlib/_strtoul.h Sun Dec 18 06:23:22 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _strtoul.h,v 1.7 2013/05/17 12:55:56 joerg Exp $ */
+/* $NetBSD: _strtoul.h,v 1.7.6.1 2016/12/18 06:23:22 snj Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -67,7 +67,10 @@
        if (base && (base < 2 || base > 36)) {
 #if !defined(_KERNEL) && !defined(_STANDALONE)
                errno = EINVAL;
-               return(0);
+               if (endptr != NULL)
+                       /* LINTED interface specification */
+                       *endptr = __UNCONST(nptr);
+               return 0;
 #else
                panic("%s: invalid base %d", __func__, base);
 #endif



Home | Main Index | Thread Index | Old Index