From 4d3bacdd7d1fa0ef59be94577f05f3daf9ebb048 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sat, 3 Oct 1998 08:00:05 +0000 Subject: [PATCH] Getting rid of more warnings... * iselect.c: Test for MISSING_BZERO_DECL, not DECLARE_BZERO; see today's change to ../configure.in. * scmsigs.c: Test for MISSING_USLEEP_DECL, not DECLARE_USLEEP. * scmconfig.h.in: Regenertaded.de.,.__ * stime.c (strptime): Declare this, #ifdef MISSING_STRPTIME_DECL. (scm_localtime, scm_mktime): Use a const char * to manipulate the time zone name. --- libguile/iselect.c | 2 +- libguile/scmconfig.h.in | 7 +++++-- libguile/scmsigs.c | 2 +- libguile/stime.c | 8 ++++++-- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/libguile/iselect.c b/libguile/iselect.c index 85d9eaa4b..9b80a256d 100644 --- a/libguile/iselect.c +++ b/libguile/iselect.c @@ -59,7 +59,7 @@ #include "coop-threads.h" #endif -#ifdef DECLARE_BZERO +#ifdef MISSING_BZERO_DECL extern void bzero (void *, size_t); #endif diff --git a/libguile/scmconfig.h.in b/libguile/scmconfig.h.in index a919b4a65..2322c7d21 100644 --- a/libguile/scmconfig.h.in +++ b/libguile/scmconfig.h.in @@ -162,10 +162,13 @@ #undef HAVE_REGCOMP /* Define if the operating system supplies bzero without declaring it. */ -#undef DECLARE_BZERO +#undef MISSING_BZERO_DECL /* Define if the operating system supplies usleep without declaring it. */ -#undef DECLARE_USLEEP +#undef MISSING_USLEEP_DECL + +/* Define if the operating system supplies strptime without declaring it. */ +#undef MISSING_STRPTIME_DECL /* Define if usleep doesn't return a value. */ #undef USLEEP_RETURNS_VOID diff --git a/libguile/scmsigs.c b/libguile/scmsigs.c index 9db15d2b3..13e139761 100644 --- a/libguile/scmsigs.c +++ b/libguile/scmsigs.c @@ -52,7 +52,7 @@ #include #endif -#if defined(DECLARE_USLEEP) || (defined(GUILE_ISELECT) && !defined(HAVE_USLEEP)) +#if defined(MISSING_USLEEP_DECL) || (defined(GUILE_ISELECT) && !defined(HAVE_USLEEP)) #ifdef USLEEP_RETURNS_VOID extern void usleep (unsigned); #else diff --git a/libguile/stime.c b/libguile/stime.c index e93e08fc1..a3ee3ca74 100644 --- a/libguile/stime.c +++ b/libguile/stime.c @@ -80,6 +80,10 @@ extern char *tzname[]; /* RS6000 and others reject char **tzname. */ #endif +#ifdef MISSING_STRPTIME_DECL +extern char *strptime (); +#endif + /* This should be figured out by autoconf. */ #ifdef CLK_TCK # define CLKTCK CLK_TCK @@ -318,7 +322,7 @@ scm_localtime (SCM time, SCM zone) err = errno; if (ltptr) { - char *ptr; + const char *ptr; /* copy zone name before calling gmtime or tzset. */ #ifdef HAVE_TM_ZONE @@ -432,7 +436,7 @@ scm_mktime (SCM sbd_time, SCM zone) if (itime != -1) { - char *ptr; + const char *ptr; /* copy zone name before calling gmtime or tzset. */ #ifdef HAVE_TM_ZONE