commit 0b20762bef9e00709ec2e20ed35013dbb996de4a from: Stefan Sperling date: Wed Jan 29 13:26:23 2020 UTC don't use stdbool.h commit - 4b60fecedffa10e9ad1531cab9b5827c17e9d059 commit + 0b20762bef9e00709ec2e20ed35013dbb996de4a blob - 1ec59fcb2d686c29ccf23365cf46cbfb8d164bf6 blob + eea10c4394ac30588f88b7149f0bff6836885e9f --- gotweb/gotweb.c +++ gotweb/gotweb.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include @@ -1328,7 +1327,7 @@ gw_get_repo_description(struct gw_trans *gw_trans, cha char *description = NULL, *d_file = NULL; unsigned int len; - if (gw_trans->gw_conf->got_show_repo_description == false) + if (gw_trans->gw_conf->got_show_repo_description == 0) goto err; if (asprintf(&d_file, "%s/description", dir) == -1) @@ -1439,7 +1438,7 @@ gw_get_repo_age(struct gw_trans *gw_trans, char *dir, if (strncmp(repo_ref, "refs/heads/", 11) == 0) is_head = 1; - if (gw_trans->gw_conf->got_show_repo_age == false) + if (gw_trans->gw_conf->got_show_repo_age == 0) return strdup(""); error = got_repo_open(&repo, dir, NULL); @@ -1606,7 +1605,7 @@ gw_get_repo_owner(struct gw_trans *gw_trans, char *dir char *comp, *pos, *buf; unsigned int i; - if (gw_trans->gw_conf->got_show_repo_owner == false) + if (gw_trans->gw_conf->got_show_repo_owner == 0) goto err; if (asprintf(&d_file, "%s/config", dir) == -1)