about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/posix/mkstemp.c3
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;