aboutsummaryrefslogtreecommitdiffstats
path: root/stagit-index.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2016-05-03 20:18:37 +0200
committerHiltjo Posthuma <[email protected]>2016-05-03 20:18:37 +0200
commit9328d2690e118127bcaa5cf9f665d8e7711f7a03 (patch)
treec28b0c28d1b708bee7ce212bfec0d5bf743e49df /stagit-index.c
parent069f105725677ce2784d3d0def156c3115c9e330 (diff)
downloadstagit-9328d2690e118127bcaa5cf9f665d8e7711f7a03.tar.gz
stagit-9328d2690e118127bcaa5cf9f665d8e7711f7a03.zip
code cleanup
Diffstat (limited to 'stagit-index.c')
-rw-r--r--stagit-index.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/stagit-index.c b/stagit-index.c
index 8a01894..d9f322a 100644
--- a/stagit-index.c
+++ b/stagit-index.c
@@ -62,7 +62,7 @@ printtimeshort(FILE *fp, const git_time *intime)
fputs(out, fp);
}
-int
+void
writeheader(FILE *fp)
{
fputs("<!DOCTYPE html>\n"
@@ -80,14 +80,12 @@ writeheader(FILE *fp)
"<table id=\"index\"><thead>\n"
"<tr><td>Name</td><td>Description</td><td>Owner</td><td>Last commit</td></tr>"
"</thead><tbody>\n", fp);
-
- return 0;
}
-int
+void
writefooter(FILE *fp)
{
- return !fputs("</tbody>\n</table>\n</div>\n</body>\n</html>\n", fp);
+ fputs("</tbody>\n</table>\n</div>\n</body>\n</html>\n", fp);
}
int