diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Clean up the whole tree
Diffstat (limited to 'source/html.c')
-rw-r--r--source/html.c15
1 file changed, 5 insertions, 10 deletions
diff --git a/source/html.c b/source/html.c
index 2e3a3b7..b97fdbb 100644
--- a/source/html.c
+++ b/source/html.c
@@ -324,8 +324,7 @@ void html_hidden(const char *name, const char *value)
html("'>");
}
-void html_option(const char *value, const char *text,
- const char *selected_value)
+void html_option(const char *value, const char *text, const char *selected_value)
{
html("<option value='");
html_attr(value);
@@ -339,8 +338,7 @@ void html_option(const char *value, const char *text,
void html_intoption(int value, const char *text, int selected_value)
{
- htmlf("<option value='%d'%s>", value,
- value == selected_value ? " selected" : "");
+ htmlf("<option value='%d'%s>", value, value == selected_value ? " selected" : "");
html_txt(text);
html("</option>\n");
}
@@ -371,8 +369,7 @@ void html_link_close(void)
*/
void html_fileperm(unsigned short mode)
{
- htmlf("%c%c%c", (mode & 4 ? 'r' : '-'),
- (mode & 2 ? 'w' : '-'), (mode & 1 ? 'x' : '-'));
+ htmlf("%c%c%c", (mode & 4 ? 'r' : '-'), (mode & 2 ? 'w' : '-'), (mode & 1 ? 'x' : '-'));
}
int html_include(const char *filename)
@@ -382,8 +379,7 @@ int html_include(const char *filename)
size_t len;
if (!(f = fopen(filename, "r"))) {
- fprintf(stderr, "[cgit] Error including file %s: %s (%d)\n",
- filename, strerror(errno), errno);
+ fprintf(stderr, "[cgit] Error including file %s: %s (%d)\n", filename, strerror(errno), errno);
return -1;
}
while ((len = fread(buf, 1, sizeof(buf), f)) > 0)
@@ -392,8 +388,7 @@ int html_include(const char *filename)
return 0;
}
-void http_parse_querystring(const char *txt,
- void (*fn)(const char *name, const char *value))
+void http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value))
{
const char *p = txt;