-
-/*
- * 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);
if (had_an_error)
return 0; /* opposite of UNIX error return convention */
- else
- return 1;
+ return 1;
}