X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0509728c8a506f287fa3483d8e8ffaf8fb66d41d..04ee0c3f6ad7e4177cc43a0c57f046013a4fbac9:/config/config.c diff --git a/config/config.c b/config/config.c index 49d5c8a4..4d380557 100644 --- a/config/config.c +++ b/config/config.c @@ -5,14 +5,13 @@ * complete copyright information. */ -#include -#include "../sbr/m_maildir.h" +#include "h/mh.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 * @@ -63,9 +63,9 @@ etcpath (char *file) if (access (epath, R_OK) != NOTOK) return epath; - /* FALLTHRU */ -try_it: + /* FALLTHRU */ +try_it: default: /* Check nmh Mail directory */ if (access ((cp = m_mailpath (file)), R_OK) != NOTOK) { @@ -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; }