summaryrefslogtreecommitdiffstats
path: root/compat_mkdtemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat_mkdtemp.c')
-rw-r--r--compat_mkdtemp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/compat_mkdtemp.c b/compat_mkdtemp.c
index d12fa87a..92144d83 100644
--- a/compat_mkdtemp.c
+++ b/compat_mkdtemp.c
@@ -45,17 +45,17 @@ mkdtemp(char *path)
for (tries = INT_MAX; tries; tries--) {
if (mktemp(path) == NULL) {
errno = EEXIST;
- return(NULL);
+ return NULL;
}
if (mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR) == 0)
- return(path);
+ return path;
if (errno != EEXIST)
- return(NULL);
+ return NULL;
for (cp = start; *cp != '\0'; cp++)
*cp = 'X';
}
errno = EEXIST;
- return(NULL);
+ return NULL;
}
#endif