]> diplodocus.org Git - nmh/blobdiff - sbr/makedir.c
inc/test-eom-align: Create test mboxes in less steps.
[nmh] / sbr / makedir.c
index e2ec35cd60ba4e7a686626b466cead27754a2bc7..9d5e12e537601cb17ca39334450f2974385f7100 100644 (file)
@@ -1,5 +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
@@ -11,6 +10,7 @@
  */
 
 #include <h/mh.h>
+#include "makedir.h"
 #include <sys/file.h>
 
 int
@@ -44,7 +44,7 @@ makedir (const char *dir)
     c = strncpy(path, dir, sizeof(path));
 
     while (!had_an_error && (c = strchr((c + 1), '/')) != NULL) {
-        *c = (char)0;
+        *c = '\0';
         if (access(path, X_OK)) {
             if (errno != ENOENT){
                 advise (dir, "unable to create directory");