projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ffa37f
)
(mkstemp): Correct return value in case template is wrong.
author
drepper
<drepper>
Tue, 7 Apr 1998 12:52:50 +0000
(12:52 +0000)
committer
drepper
<drepper>
Tue, 7 Apr 1998 12:52:50 +0000
(12:52 +0000)
Remove unused varaible `ignored'.
sysdeps/posix/mkstemp.c
patch
|
blob
|
history
diff --git
a/sysdeps/posix/mkstemp.c
b/sysdeps/posix/mkstemp.c
index
fceb59b
..
b3c8b64
100644
(file)
--- 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;