]> git.cameronkatri.com Git - mandoc.git/blobdiff - compat_mkdtemp.c
style message about missing .Fn markup; inspired by mdoclint
[mandoc.git] / compat_mkdtemp.c
index cc336e547908951bf14952bb6b1a92959666c9c7..1fcb325f4f9a9ec25ef801500b04ccf94267f73a 100644 (file)
@@ -6,7 +6,7 @@ int dummy;
 
 #else
 
-/*     $Id: compat_mkdtemp.c,v 1.1 2015/03/19 14:57:29 schwarze Exp $  */
+/*     $Id: compat_mkdtemp.c,v 1.2 2015/10/06 18:32:19 schwarze Exp $  */
 /*
  * Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org>
  *
@@ -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