From: Ralph Corderoy Date: Sat, 10 Dec 2016 14:45:00 +0000 (+0000) Subject: Rename recently added ToLower() to to_lower(). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b957327c2a4337dc2219ae3ea5b05de8bed38f8f?hp=8c69934299322c189e72259c2b31545c94697ea8 Rename recently added ToLower() to to_lower(). --- diff --git a/h/utils.h b/h/utils.h index 7dc407d6..6b0f3c9a 100644 --- a/h/utils.h +++ b/h/utils.h @@ -71,7 +71,7 @@ bool has_prefix(const char *s, const char *prefix); 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 ToLower(char *s); +void to_lower(char *s); void ToUpper(char *s); /* diff --git a/sbr/utils.c b/sbr/utils.c index 93ddc500..680db378 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -416,8 +416,8 @@ void trim_suffix_c(char *s, int c) } -/* ToLower runs all of s through tolower(3). */ -void ToLower(char *s) +/* to_lower runs all of s through tolower(3). */ +void to_lower(char *s) { unsigned char *b; diff --git a/uip/mhparse.c b/uip/mhparse.c index 5b1758d0..85c32924 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -662,7 +662,7 @@ get_ctinfo (char *cp, CT ct, int magic) TYPE_FIELD, ct->c_file); return NOTOK; } - ToLower(ci->ci_type); + to_lower(ci->ci_type); while (isspace ((unsigned char) *cp)) cp++; @@ -697,7 +697,7 @@ get_ctinfo (char *cp, CT ct, int magic) TYPE_FIELD, ct->c_file, ci->ci_type); return NOTOK; } - ToLower(ci->ci_subtype); + to_lower(ci->ci_subtype); magic_skip: while (isspace ((unsigned char) *cp))