aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content-parser.c4
1 files changed, 2 insertions, 2 deletions
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, "&amp;");