]> diplodocus.org Git - nmh/blobdiff - sbr/makedir.c
Bump up size of two static char[] so gcc knows they won't overflow.
[nmh] / sbr / makedir.c
index 562949bebafb249f83d80545a8d9547475db2594..ad481099d2d45bb88e30195cfdce2eb17dbfabd9 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * makedir.c -- make a directory
+/* makedir.c -- make a directory
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  */
 
 #include <h/mh.h>
+#include "makedir.h"
 #include <sys/file.h>
 
 int
-makedir (char *dir)
+makedir (const char *dir)
 {
     char            path[PATH_MAX];
     char*           folder_perms_ASCII;
     int             had_an_error = 0;
     mode_t          folder_perms, saved_umask;
-    register char*  c;
+    char*  c;
 
     context_save();     /* save the context file */
     fflush(stdout);
@@ -73,6 +72,5 @@ makedir (char *dir)
 
     if (had_an_error)
         return 0;  /* opposite of UNIX error return convention */
-    else
-        return 1;
+    return 1;
 }