X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/042f5bed7ff3e5b34ff3166951a7b98bf6bbf105..c576ad2674c37a1c63f004c71049998f38854c64:/config/config.c diff --git a/config/config.c b/config/config.c index 633293e2..fa3df3bd 100644 --- a/config/config.c +++ b/config/config.c @@ -6,12 +6,12 @@ */ #include +#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 /* @@ -62,9 +62,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) { @@ -77,7 +77,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; }