don't use stdbool.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 1ec59fc..eea10c4 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -24,7 +24,6 @@
#include <errno.h>
#include <regex.h>
#include <stdarg.h>
-#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@@ -1328,7 +1327,7 @@ gw_get_repo_description(struct gw_trans *gw_trans, char *dir)
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, char *repo_ref,
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)