summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/utils.c b/src/utils.c
index 00fafea..630b6bf 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -957,14 +957,11 @@ parse_date (char *date_string, enum datefmt datefmt, int *year, int *month,
return 1;
}
-char *
+void
str_toupper (char *s)
{
- int len;
-
- for (len = 0; s && s[len]; len++)
- s[len] = toupper (s[len]);
- return s;
+ if (!s) return;
+ for (; *s; s++) *s = toupper (*s);
}
void