Libraries updates and cleanup
* Updating common/lib * Updating lib/csu * Updating lib/libc * Updating libexec/ld.elf_so * Corrected test on __minix in featuretest to actually follow the meaning of the comment. * Cleaned up _REENTRANT-related defintions. * Disabled -D_REENTRANT for libfetch * Removing some unneeded __NBSD_LIBC defines and tests Change-Id: Ic1394baef74d11b9f86b312f5ff4bbc3cbf72ce2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: _strtol.h,v 1.2 2009/05/20 22:03:29 christos Exp $ */
|
||||
/* $NetBSD: _strtol.h,v 1.3 2012/03/09 15:41:16 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
@@ -109,7 +109,7 @@ _FUNCNAME(const char *nptr, char **endptr, int base)
|
||||
* Set any if any `digits' consumed; make it negative to indicate
|
||||
* overflow.
|
||||
*/
|
||||
cutoff = (neg ? __INT_MIN : __INT_MAX);
|
||||
cutoff = (__INT)(neg ? __INT_MIN : __INT_MAX);
|
||||
cutlim = (int)(cutoff % base);
|
||||
cutoff /= base;
|
||||
if (neg) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: _strtoul.h,v 1.1 2008/08/20 12:42:26 joerg Exp $ */
|
||||
/* $NetBSD: _strtoul.h,v 1.3 2012/03/22 15:57:29 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
@@ -91,8 +91,8 @@ _FUNCNAME(const char *nptr, char **endptr, int base)
|
||||
/*
|
||||
* See strtol for comments as to the logic used.
|
||||
*/
|
||||
cutoff = __UINT_MAX / (__UINT)base;
|
||||
cutlim = (int)(__UINT_MAX % (__UINT)base);
|
||||
cutoff = ((__UINT)__UINT_MAX / (__UINT)base);
|
||||
cutlim = (int)((__UINT)__UINT_MAX % (__UINT)base);
|
||||
for (acc = 0, any = 0;; c = *s++) {
|
||||
if (isdigit(c))
|
||||
i = c - '0';
|
||||
|
||||
Reference in New Issue
Block a user