diff --git a/stagit.c b/stagit.c
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
+#include <stdbool.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
@@ -71,7 +72,7 @@ static char *licensefiles[] = { "HEAD:LICENSE", "HEAD:COPYING" };
static char *license;
static char *readmefiles[] = { "HEAD:README", "HEAD:README.md", "HEAD:README.adoc" };
static char *readme;
-static int fancyreadme = 0;
+static bool fancy_readme = false; /* wether or not do we hace a fancy README */
static long long nlogcommits = -1; /* < 0 indicates not used */
/* cache */
@@ -495,7 +496,7 @@ writeheader(FILE *fp, const char *title)
if (readme)
{
- if (fancyreadme)
+ if (fancy_readme)
{
fprintf(fp, "<li><a href=\"%sREADME.html\">README</a></li>\n",
relpath);
@@ -1285,7 +1286,7 @@ main(int argc, char *argv[])
if (!strcmp(ext, "md") || !strcmp(ext, "MD"))
{
readme = "README.html";
- fancyreadme = 1;
+ fancy_readme = true;
const char *tmp = "/tmp/stagit-tmp";
fp = efopen(readme, "w");