*/
#include <h/mh.h>
+#include "sbr/m_maildir.h"
#include <pwd.h>
#define nmhbindir(file) NMHBINDIR#file
#define nmhlibexecdir(file) NMHLIBEXECDIR#file
#define nmhetcdir(file) NMHETCDIR#file
-#define nmhdocdir(file) NMHDOCDIR#file
/*
}
}
- snprintf (epath, sizeof(epath), "%s/%s", pp, cp ? cp : "");
+ snprintf (epath, sizeof(epath), "%s/%s", pp, FENDNULL(cp));
if (cp)
*--cp = '/';
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) {
/* 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;
}