From 6916c5e1fa03596836767d10648a26eff9d6a8e2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 7 Apr 1998 15:41:36 +0000 Subject: Update. 1998-04-07 17:50 Zack Weinberg * glibcbug.in: Report version of gcc in use. Remove unused variable ENVIRONMENT. 1998-04-07 Gordon Matzigkeit * aclocal.m4 (LIBC_PROG_BINUTILS): Use `-print-prog-name', not `-print-file-name' to find as and ld. 1998-04-07 Ulrich Drepper * sysdeps/posix/mkstemp.c (mkstemp): Correct return value in case template is wrong. Remove unused varaible `ignored'. 1998-04-07 Andreas Jaeger * libc.map: Export __libc_sa_len. * iconv/gconv_conf.c (MAXPATHLEN): Define correctly. --- sysdeps/posix/mkstemp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sysdeps/posix') diff --git a/sysdeps/posix/mkstemp.c b/sysdeps/posix/mkstemp.c index fceb59b4be..b3c8b64021 100644 --- a/sysdeps/posix/mkstemp.c +++ b/sysdeps/posix/mkstemp.c @@ -45,7 +45,7 @@ mkstemp (template) if (len < 6 || strcmp (&template[len - 6], "XXXXXX")) { __set_errno (EINVAL); - return NULL; + return -1; } /* This is where the Xs start. */ @@ -57,7 +57,6 @@ mkstemp (template) for (count = 0; count < TMP_MAX; ++count) { - struct stat ignored; uint32_t v = value; int fd; -- cgit 1.4.1