]> diplodocus.org Git - nmh/commitdiff
Rename recently added HasSuffix() to has_suffix().
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 10 Dec 2016 14:39:21 +0000 (14:39 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 10 Dec 2016 14:39:21 +0000 (14:39 +0000)
h/utils.h
sbr/utils.c
uip/mhfixmsg.c

index 5e1522c..21988f7 100644 (file)
--- a/h/utils.h
+++ b/h/utils.h
@@ -68,7 +68,7 @@ void trunccpy(char *dst, const char *src, size_t size);
 #define TRUNCCPY(dst, src) trunccpy(dst, src, sizeof (dst))
 
 bool has_prefix(const char *s, const char *prefix);
-bool HasSuffix(const char *s, const char *suffix);
+bool has_suffix(const char *s, const char *suffix);
 bool HasSuffixC(const char *s, int c);
 void TrimSuffixC(char *s, int c);
 void ToLower(char *s);
index 80c0cd0..c070dc1 100644 (file)
@@ -383,8 +383,8 @@ bool has_prefix(const char *s, const char *prefix)
 }
 
 
-/* HasSuffix returns true if non-NULL s ends with non-NULL suffix. */
-bool HasSuffix(const char *s, const char *suffix)
+/* has_suffix returns true if non-NULL s ends with non-NULL suffix. */
+bool has_suffix(const char *s, const char *suffix)
 {
     size_t ls, lsuf;
 
index 553b14e..2a701f0 100644 (file)
@@ -2589,7 +2589,7 @@ static int
 fix_filename_param (char *name, char *value, PM *first_pm, PM *last_pm) {
     int fixed = 0;
 
-    if (has_prefix(value, "=?") && HasSuffix(value, "?=")) {
+    if (has_prefix(value, "=?") && has_suffix(value, "?=")) {
         /* Looks like an RFC 2047 encoded parameter. */
         char decoded[PATH_MAX + 1];