X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/a420c7ce9b2c483c2f93b8a1a03cc80f3eeedb20..1c581a072651524f3b0d91f33e22a42c4166dd96:/cgit.c?ds=sidebyside diff --git a/cgit.c b/cgit.c index 7271412..3ed1935 100644 --- a/cgit.c +++ b/cgit.c @@ -110,7 +110,7 @@ static void config_cb(const char *name, const char *value) ctx.repo->path = trim_end(value, '/'); else if (ctx.repo && starts_with(name, "repo.")) repo_config(ctx.repo, name + 5, value); - else if (!strcmp(name, "readme") && value != NULL) + else if (!strcmp(name, "readme")) string_list_append(&ctx.cfg.readme, xstrdup(value)); else if (!strcmp(name, "root-title")) ctx.cfg.root_title = xstrdup(value); @@ -314,8 +314,6 @@ static void querystring_cb(const char *name, const char *value) ctx.qry.path = trim_end(value, '/'); } else if (!strcmp(name, "name")) { ctx.qry.name = xstrdup(value); - } else if (!strcmp(name, "mimetype")) { - ctx.qry.mimetype = xstrdup(value); } else if (!strcmp(name, "s")) { ctx.qry.sort = xstrdup(value); } else if (!strcmp(name, "showmsg")) { @@ -651,7 +649,7 @@ static inline void open_auth_filter(const char *function) static inline void authenticate_post(void) { char buffer[MAX_AUTHENTICATION_POST_BYTES]; - int len; + unsigned int len; open_auth_filter("authenticate-post"); len = ctx.env.content_length; @@ -733,9 +731,6 @@ static void process_request(void) if (ctx.repo && prepare_repo_cmd()) return; - if (cmd->pre) - cmd->pre(); - cmd->fn(); }