diff options
author | Robert Clausecker <fuz@fuz.su> | 2022-11-07 19:55:17 +0100 |
---|---|---|
committer | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2022-11-09 14:10:25 +0100 |
commit | a5f1cca72a5b84fe783e600eb468cf140b5e3a31 (patch) | |
tree | 1c551e439d8bba94518946b0f9bccdcdee7e96c4 /mail/wmmaiload/files/patch-wmmaiload_checkthread.c | |
parent | games/wmqstat: fix build with -fno-common (diff) |
mail/wmmaiload: fix build on recent FreeBSD.
Also fix some obvious things (missing deps, etc).
PR: 267613
Reported by: fuz@fuz.su (maintainer)
MFH: 2022Q4 (build fix)
Diffstat (limited to 'mail/wmmaiload/files/patch-wmmaiload_checkthread.c')
-rw-r--r-- | mail/wmmaiload/files/patch-wmmaiload_checkthread.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/mail/wmmaiload/files/patch-wmmaiload_checkthread.c b/mail/wmmaiload/files/patch-wmmaiload_checkthread.c new file mode 100644 index 000000000000..eee126b8dcf8 --- /dev/null +++ b/mail/wmmaiload/files/patch-wmmaiload_checkthread.c @@ -0,0 +1,47 @@ +--- wmmaiload/checkthread.c.orig 2009-02-23 02:59:20 UTC ++++ wmmaiload/checkthread.c +@@ -85,7 +85,7 @@ static Bool check_imap(MailBox *box, time_t now); + #endif /* HAVE_IMAP */ + #ifdef HAVE_MH + static Bool check_mh(MailBox *box, time_t now); +-static Bool isnumber(const char*); ++static Bool isnum(const char*); + static Bool isdir(const char*); + static Bool isfile(const char *); + static char *absname(const char*, int); +@@ -304,7 +304,7 @@ static Bool check_imap(MailBox *box, time_t now) + + + #ifdef HAVE_MH +-static Bool isnumber(const char *s) ++static Bool isnum(const char *s) + { + while (*s != '\0') + { +@@ -420,7 +420,7 @@ static char *mh_get_profile(void) + + if ((cp = getenv("MH"))) + { +- if (*cp |= '/') ++ if (*cp != '/') + profile = absname(cp, CWD); + else + profile = xstrdup(cp); +@@ -488,7 +488,7 @@ static int mh_getseqcnt(const char *word) + { + int retval = 0; + +- if (isnumber(word)) ++ if (isnum(word)) + retval = 1; + else + { +@@ -607,7 +607,7 @@ static int mh_getmails(const char *mh_box) + + while ((d_entry = readdir(dir))) + { +- if (isnumber(d_entry->d_name)) ++ if (isnum(d_entry->d_name)) + { + char * tmp = NULL; + |