]> diplodocus.org Git - nmh/commitdiff
Rename recently added ToUpper() to to_upper().
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 10 Dec 2016 14:46:04 +0000 (14:46 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 10 Dec 2016 14:46:04 +0000 (14:46 +0000)
h/utils.h
sbr/utils.c
uip/mhlsbr.c

index 6b0f3c9..e1cfaed 100644 (file)
--- a/h/utils.h
+++ b/h/utils.h
@@ -72,7 +72,7 @@ bool has_suffix(const char *s, const char *suffix);
 bool has_suffix_c(const char *s, int c);
 void trim_suffix_c(char *s, int c);
 void to_lower(char *s);
-void ToUpper(char *s);
+void to_upper(char *s);
 
 /*
  * See if a string contains 8 bit characters (use isascii() for the test).
index 680db37..d27fa81 100644 (file)
@@ -426,8 +426,8 @@ void to_lower(char *s)
 }
 
 
-/* ToUpper runs all of s through toupper(3). */
-void ToUpper(char *s)
+/* to_upper runs all of s through toupper(3). */
+void to_upper(char *s)
 {
     unsigned char *b;
 
@@ -553,7 +553,7 @@ char *
 upcase (const char *str) {
     char *up = cpytrim (str);
 
-    ToUpper(up);
+    to_upper(up);
 
     return up;
 }
index 99149d9..329ad79 100644 (file)
@@ -1330,7 +1330,7 @@ putcomp (struct mcomp *c1, struct mcomp *c2, int flag)
 
     if (!(c1->c_flags & HDROUTPUT) && !(c1->c_flags & NOCOMPONENT)) {
         if (c1->c_flags & UPPERCASE)           /* uppercase component also */
-            ToUpper(text);
+            to_upper(text);
        putstr(text, c1->c_flags);
        if (flag != BODYCOMP) {
            putstr (": ", c1->c_flags);
@@ -1350,7 +1350,7 @@ putcomp (struct mcomp *c1, struct mcomp *c2, int flag)
            && !(c2->c_flags & HDROUTPUT)
            && !(c2->c_flags & NOCOMPONENT)) {
         if (c1->c_flags & UPPERCASE)
-            ToUpper(c2->c_name);
+            to_upper(c2->c_name);
        putstr (c2->c_name, c1->c_flags);
        putstr (": ", c1->c_flags);
        if (!(c1->c_flags & SPLIT))
@@ -1362,7 +1362,7 @@ putcomp (struct mcomp *c1, struct mcomp *c2, int flag)
                putstr (" ", c1->c_flags);
     }
     if (c1->c_flags & UPPERCASE)
-        ToUpper(c2->c_text);
+        to_upper(c2->c_text);
 
     count = 0;
     if (cchdr) {