From 254b2f23440cb9360cf2e19906d0b56256412e26 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Fri, 22 Jan 2016 19:57:24 +0100 Subject: content-parser: use size_t instead of unsigned len when handling strings --- src/content-parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/content-parser.c b/src/content-parser.c index 5b85586..1a929e2 100644 --- a/src/content-parser.c +++ b/src/content-parser.c @@ -27,7 +27,7 @@ blogc_slugify(const char *str) return NULL; char *new_str = b_strdup(str); int diff = 'a' - 'A'; // just to avoid magic numbers - for (unsigned int i = 0; new_str[i] != '\0'; i++) { + for (size_t i = 0; new_str[i] != '\0'; i++) { if (new_str[i] >= 'a' && new_str[i] <= 'z') continue; if (new_str[i] >= '0' && new_str[i] <= '9') @@ -47,7 +47,7 @@ blogc_htmlentities(const char *str) if (str == NULL) return NULL; b_string_t *rv = b_string_new(); - for (unsigned int i = 0; str[i] != '\0'; i++) { + for (size_t i = 0; str[i] != '\0'; i++) { switch (str[i]) { case '&': b_string_append(rv, "&"); -- cgit v1.2.3-18-g5258