]> diplodocus.org Git - nmh/blobdiff - config/config.c
getpass.c: Move interface to own file.
[nmh] / config / config.c
index 5b08db28b7fb6f1934bb1193b98cc22dc03a7a6b..55d862e71c19f6e17a4f857debfc37d3e401c0e0 100644 (file)
@@ -5,7 +5,8 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
+#include "h/mh.h"
+#include "sbr/context_read.h"
 #include "sbr/m_maildir.h"
 #include <pwd.h>
 
@@ -23,6 +24,7 @@
  * 3) Next, check in nmh Mail directory.
  * 4) Next, check in nmh `etc' directory.
  *
+ * Does not return NULL.
  */
 
 char *
@@ -77,7 +79,7 @@ try_it:
 
     /* Check nmh `etc' directory */
     snprintf (epath, sizeof(epath), nmhetcdir(/%s), file);
-    return (access (epath, R_OK) != NOTOK ? epath : file);
+    return access(epath, R_OK) != NOTOK ? epath : file;
 }