From b3fc62063a0082718945d41cee4bffe054142fbd Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 9 Nov 1993 13:01:33 +0000 Subject: [PATCH] GNU shell utilities --- lib/getdate.y | 2 +- lib/putenv.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/getdate.y b/lib/getdate.y index df1a08a98..1d5690423 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -97,7 +97,7 @@ void *alloca (); #undef timezone /* needed for sgi */ #endif -#if defined(HAVE_SYS_TIMEB_H) || (!defined(USG) && defined(HAVE_FTIME)) +#if defined(HAVE_SYS_TIMEB_H) #include #else /* diff --git a/lib/putenv.c b/lib/putenv.c index b9f491284..47f7256e5 100644 --- a/lib/putenv.c +++ b/lib/putenv.c @@ -106,7 +106,8 @@ putenv (string) char **new_environ = (char **) malloc ((size + 2) * sizeof (char *)); if (new_environ == NULL) return -1; - (void) bcopy ((char *) environ, (char *) new_environ, size * sizeof (char *)); + (void) bcopy ((char *) environ, (char *) new_environ, + size * sizeof (char *)); new_environ[size] = (char *) string; new_environ[size + 1] = NULL; if (last_environ != NULL) -- 2.11.0