summaryrefslogtreecommitdiffstats
path: root/newlib/libc/time/tzset_r.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-06-14 14:31:59 +0000
committerCorinna Vinschen <corinna@vinschen.de>2011-06-14 14:31:59 +0000
commitaee3f8fb6fbacb4223b1c8ce259e3dd875c85031 (patch)
treeb37b8a50a2bd213bee1bbeb5bd82d2cfbf0da5c7 /newlib/libc/time/tzset_r.c
parent25fa7e5ad63d97d00deef1c9eddb346d1134ba72 (diff)
downloadcygnal-aee3f8fb6fbacb4223b1c8ce259e3dd875c85031.tar.gz
cygnal-aee3f8fb6fbacb4223b1c8ce259e3dd875c85031.tar.bz2
cygnal-aee3f8fb6fbacb4223b1c8ce259e3dd875c85031.zip
* libc/time/asctime_r.c (asctime_r): Replace call to sprintf with call
to siprintf. * libc/time/strftime.c: Define snprintf to sniprintf in multibyte case. * libc/time/tzset_r.c: Define sscanf to siscanf.
Diffstat (limited to 'newlib/libc/time/tzset_r.c')
-rw-r--r--newlib/libc/time/tzset_r.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/time/tzset_r.c b/newlib/libc/time/tzset_r.c
index 5a5a9599b..2c5b72341 100644
--- a/newlib/libc/time/tzset_r.c
+++ b/newlib/libc/time/tzset_r.c
@@ -7,6 +7,8 @@
#include <sys/time.h>
#include "local.h"
+#define sscanf siscanf /* avoid to pull in FP functions. */
+
static char __tzname_std[11];
static char __tzname_dst[11];
static char *prev_tzenv = NULL;