[uClibc-cvs] uClibc/libc/misc/time time.c,1.16,1.17
Manuel Novoa III
mjn3 at uclibc.org
Sun Nov 16 21:10:10 UTC 2003
Update of /var/cvs/uClibc/libc/misc/time
In directory winder:/tmp/cvs-serv17009
Modified Files:
time.c
Log Message:
I forgot to update the thread locking in the last dst fix.
Index: time.c
===================================================================
RCS file: /var/cvs/uClibc/libc/misc/time/time.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- time.c 2 Nov 2003 07:39:27 -0000 1.16
+++ time.c 16 Nov 2003 21:10:07 -0000 1.17
@@ -126,6 +126,8 @@
* list.
*
* Fix a dst-related bug which resulted in use of uninitialized data.
+ *
+ * Nov 15, 2003 I forgot to update the thread locking in the last dst fix.
*/
#define _GNU_SOURCE
@@ -2100,6 +2102,8 @@
register const unsigned char *s;
int d, default_dst;
+ TZLOCK;
+
tzset();
memcpy(p, timeptr, sizeof(struct tm));
@@ -2135,8 +2139,6 @@
--d;
}
- TZLOCK;
-
#ifdef __BCC__
d = p[5] - 1;
days = -719163L + ((long)d)*365 + ((d/4) - (d/100) + (d/400) + p[3] + p[7]);
More information about the uClibc-cvs
mailing list