Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/time Both increment_overflow() and normalize_overfl...



details:   https://anonhg.NetBSD.org/src/rev/b209ef955749
branches:  trunk
changeset: 788821:b209ef955749
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Jul 22 04:55:09 2013 +0000

description:
Both increment_overflow() and normalize_overflow() have two different
declarations. One must be *32(). Fixes compile error observed on sparc64.

diffstat:

 lib/libc/time/localtime.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r 2594438896d2 -r b209ef955749 lib/libc/time/localtime.c
--- a/lib/libc/time/localtime.c Mon Jul 22 03:40:36 2013 +0000
+++ b/lib/libc/time/localtime.c Mon Jul 22 04:55:09 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: localtime.c,v 1.75 2013/07/17 23:09:26 christos Exp $  */
+/*     $NetBSD: localtime.c,v 1.76 2013/07/22 04:55:09 msaitoh Exp $   */
 
 /*
 ** This file is in the public domain, so clarified as of
@@ -10,7 +10,7 @@
 #if 0
 static char    elsieid[] = "@(#)localtime.c    8.17";
 #else
-__RCSID("$NetBSD: localtime.c,v 1.75 2013/07/17 23:09:26 christos Exp $");
+__RCSID("$NetBSD: localtime.c,v 1.76 2013/07/22 04:55:09 msaitoh Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -169,12 +169,12 @@
 static struct tm *     localsub(const timezone_t sp, const time_t *timep,
                                const int_fast32_t offset, struct tm *tmp);
 static int             increment_overflow(int * number, int delta);
+static int             increment_overflow32(int_fast32_t * number, int delta);
 static int             leaps_thru_end_of(int y) ATTRIBUTE_PURE;
-static int             increment_overflow(int_fast32_t * number, int delta);
-static int             normalize_overflow(int_fast32_t * tensptr,
-                               int * unitsptr, int base);
 static int             normalize_overflow(int * tensptr, int * unitsptr,
                                int base);
+static int             normalize_overflow32(int_fast32_t * tensptr,
+                               int * unitsptr, int base);
 static void            settzname(void);
 static time_t          time1(const timezone_t sp, struct tm * const tmp,
                                subfun_t funcp, const int_fast32_t offset);



Home | Main Index | Thread Index | Old Index