From 5daced28b0c7cfbf2d948c9e7098d3bef7c21d2c Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sat, 10 Dec 2016 14:46:04 +0000 Subject: [PATCH] Rename recently added ToUpper() to to_upper(). --- h/utils.h | 2 +- sbr/utils.c | 6 +++--- uip/mhlsbr.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/h/utils.h b/h/utils.h index 6b0f3c9a..e1cfaedf 100644 --- 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). diff --git a/sbr/utils.c b/sbr/utils.c index 680db378..d27fa81d 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -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; } diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index 99149d9e..329ad79e 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -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) { -- 2.56.0