aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-runserver
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc-runserver')
-rw-r--r--src/blogc-runserver/httpd-utils.c2
-rw-r--r--src/blogc-runserver/main.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/blogc-runserver/httpd-utils.c b/src/blogc-runserver/httpd-utils.c
index e67afb1..7a49bf2 100644
--- a/src/blogc-runserver/httpd-utils.c
+++ b/src/blogc-runserver/httpd-utils.c
@@ -90,7 +90,7 @@ const char*
br_get_extension(const char *filename)
{
const char *ext = NULL;
- unsigned int i;
+ size_t i;
for (i = strlen(filename); i > 0; i--) {
if (filename[i] == '.') {
ext = filename + i + 1;
diff --git a/src/blogc-runserver/main.c b/src/blogc-runserver/main.c
index 15942ac..b9b831a 100644
--- a/src/blogc-runserver/main.c
+++ b/src/blogc-runserver/main.c
@@ -70,9 +70,9 @@ main(int argc, char **argv)
char *tmp_port = getenv("BLOGC_RUNSERVER_DEFAULT_PORT");
char *default_port = bc_strdup(tmp_port != NULL ? tmp_port : "8080");
- unsigned int args = 0;
+ size_t args = 0;
- for (unsigned int i = 1; i < argc; i++) {
+ for (size_t i = 1; i < argc; i++) {
if (argv[i][0] == '-') {
switch (argv[i][1]) {
case 'h':