diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-04-07 15:41:36 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-04-07 15:41:36 +0000 |
commit | 6916c5e1fa03596836767d10648a26eff9d6a8e2 (patch) | |
tree | 1afe49cb8c8096ab7f32754c90581d5961bf14d6 /sysdeps/posix | |
parent | 4bca4c174852bfc348f99e85684fc8f65631d125 (diff) | |
download | glibc-6916c5e1fa03596836767d10648a26eff9d6a8e2.tar glibc-6916c5e1fa03596836767d10648a26eff9d6a8e2.tar.gz glibc-6916c5e1fa03596836767d10648a26eff9d6a8e2.tar.bz2 glibc-6916c5e1fa03596836767d10648a26eff9d6a8e2.zip |
Update.
1998-04-07 17:50 Zack Weinberg <zack@rabi.phys.columbia.edu>
* glibcbug.in: Report version of gcc in use. Remove unused variable
ENVIRONMENT.
1998-04-07 Gordon Matzigkeit <gord@profitpress.com>
* aclocal.m4 (LIBC_PROG_BINUTILS): Use `-print-prog-name', not
`-print-file-name' to find as and ld.
1998-04-07 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/posix/mkstemp.c (mkstemp): Correct return value in case
template is wrong. Remove unused varaible `ignored'.
1998-04-07 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* libc.map: Export __libc_sa_len.
* iconv/gconv_conf.c (MAXPATHLEN): Define correctly.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/mkstemp.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |