summaryrefslogtreecommitdiffabout
path: root/ui-shared.c
authorLars Hjemli <hjemli@gmail.com>2007-05-14 22:22:03 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-14 22:22:17 (UTC)
commit6fb7d09fea94b3dd6932469283358cb24f1e7e29 (patch) (unidiff)
treeef8b1954a585006746bf528962f122d8fb3f597c /ui-shared.c
parent495e39677326284ea13b2f6d76195d6800c2a450 (diff)
downloadcgit-6fb7d09fea94b3dd6932469283358cb24f1e7e29.zip
cgit-6fb7d09fea94b3dd6932469283358cb24f1e7e29.tar.gz
cgit-6fb7d09fea94b3dd6932469283358cb24f1e7e29.tar.bz2
ui-shared.c: fix whitespace breakage
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-shared.c') (more/less context) (show whitespace changes)
-rw-r--r--ui-shared.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index bca50aa..6f5cf2b 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -80,25 +80,24 @@ char *cgit_currurl()
80 return fmt("%s/", cgit_virtual_root); 80 return fmt("%s/", cgit_virtual_root);
81} 81}
82 82
83 83
84void cgit_print_date(unsigned long secs) 84void cgit_print_date(unsigned long secs)
85{ 85{
86 char buf[32]; 86 char buf[32];
87 struct tm *time; 87 struct tm *time;
88 88
89 time = gmtime(&secs); 89 time = gmtime(&secs);
90 strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", time); 90 strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", time);
91 html_txt(buf); 91 html_txt(buf);
92
93} 92}
94 93
95void cgit_print_docstart(char *title, struct cacheitem *item) 94void cgit_print_docstart(char *title, struct cacheitem *item)
96{ 95{
97 html("Content-Type: text/html; charset=utf-8\n"); 96 html("Content-Type: text/html; charset=utf-8\n");
98 htmlf("Last-Modified: %s\n", http_date(item->st.st_mtime)); 97 htmlf("Last-Modified: %s\n", http_date(item->st.st_mtime));
99 htmlf("Expires: %s\n", http_date(item->st.st_mtime + 98 htmlf("Expires: %s\n", http_date(item->st.st_mtime +
100 ttl_seconds(item->ttl))); 99 ttl_seconds(item->ttl)));
101 html("\n"); 100 html("\n");
102 html(cgit_doctype); 101 html(cgit_doctype);
103 html("<html>\n"); 102 html("<html>\n");
104 html("<head>\n"); 103 html("<head>\n");