diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-11-10 22:14:00 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-11-10 22:14:00 +0000 |
commit | a3f726e35f1e7d918061074a85ebe7a2c7c300a5 (patch) | |
tree | d9ab2a281be2a13fbb1ec8682d4e5c7ff0502cde /mx.c | |
parent | 912c6b0df82fe3a2745d68131db9300222226a73 (diff) |
Introduce or rewrite mutt_{str*cmp,strlen} and use them all over the
place. If there are still segmentation faults due to missing
NONULLs over, they are gone now.
Diffstat (limited to 'mx.c')
-rw-r--r-- | mx.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -56,7 +56,7 @@ static const char rcsid[]="$Id$"; #endif -#define mutt_is_spool(s) (strcmp (NONULL(Spoolfile), s) == 0) +#define mutt_is_spool(s) (mutt_strcmp (Spoolfile, s) == 0) #ifdef USE_DOTLOCK /* parameters: @@ -353,9 +353,9 @@ int mx_get_magic (const char *path) #endif fgets (tmp, sizeof (tmp), f); - if (strncmp ("From ", tmp, 5) == 0) + if (mutt_strncmp ("From ", tmp, 5) == 0) magic = M_MBOX; - else if (strcmp (MMDF_SEP, tmp) == 0) + else if (mutt_strcmp (MMDF_SEP, tmp) == 0) magic = M_MMDF; fclose (f); #ifndef BUFFY_SIZE @@ -384,15 +384,15 @@ int mx_get_magic (const char *path) */ int mx_set_magic (const char *s) { - if (strcasecmp (s, "mbox") == 0) + if (mutt_strcasecmp (s, "mbox") == 0) DefaultMagic = M_MBOX; - else if (strcasecmp (s, "mmdf") == 0) + else if (mutt_strcasecmp (s, "mmdf") == 0) DefaultMagic = M_MMDF; - else if (strcasecmp (s, "mh") == 0) + else if (mutt_strcasecmp (s, "mh") == 0) DefaultMagic = M_MH; - else if (strcasecmp (s, "maildir") == 0) + else if (mutt_strcasecmp (s, "maildir") == 0) DefaultMagic = M_MAILDIR; - else if (strcasecmp (s, "kendra") == 0) + else if (mutt_strcasecmp (s, "kendra") == 0) DefaultMagic = M_KENDRA; else return (-1); |