X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/04b46522d25e71bc8e5066215b4ce1cd4f903486..1ed08ad2184ac38d0a80e9a8146f378fb297c6a9:/config/config.c diff --git a/config/config.c b/config/config.c index c44f1396..2511472e 100644 --- a/config/config.c +++ b/config/config.c @@ -6,13 +6,12 @@ */ #include -#include "../sbr/m_maildir.h" +#include "sbr/m_maildir.h" #include #define nmhbindir(file) NMHBINDIR#file #define nmhlibexecdir(file) NMHLIBEXECDIR#file #define nmhetcdir(file) NMHETCDIR#file -#define nmhdocdir(file) NMHDOCDIR#file /* @@ -24,6 +23,7 @@ * 3) Next, check in nmh Mail directory. * 4) Next, check in nmh `etc' directory. * + * Does not return NULL. */ char * @@ -78,7 +78,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; }