summaryrefslogtreecommitdiffabout
authorLars Hjemli <hjemli@gmail.com>2007-05-14 20:58:01 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-14 20:58:01 (UTC)
commit5b94c96a83f19a0175a8e1699d71080965793cc2 (patch) (unidiff)
tree5cc66ff2675a87c3501b2a3ce8c479f10ce701ff
parenta342ac6b4d7830f82230b0f6a29bc9378d66747e (diff)
downloadcgit-5b94c96a83f19a0175a8e1699d71080965793cc2.zip
cgit-5b94c96a83f19a0175a8e1699d71080965793cc2.tar.gz
cgit-5b94c96a83f19a0175a8e1699d71080965793cc2.tar.bz2
cgit.c: fix whitespace breakage
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/cgit.c b/cgit.c
index 9e63d18..1d7a83f 100644
--- a/cgit.c
+++ b/cgit.c
@@ -17,3 +17,3 @@ static struct repoinfo *cgit_get_repoinfo(char *url)
17 struct repoinfo *repo; 17 struct repoinfo *repo;
18 18
19 for (i=0; i<cgit_repolist.count; i++) { 19 for (i=0; i<cgit_repolist.count; i++) {
@@ -45,3 +45,3 @@ static int cgit_prepare_cache(struct cacheitem *item)
45 if (!cgit_query_page) { 45 if (!cgit_query_page) {
46 item->name = xstrdup(fmt("%s/%s/index.html", cgit_cache_root, 46 item->name = xstrdup(fmt("%s/%s/index.html", cgit_cache_root,
47 cgit_repo->url)); 47 cgit_repo->url));
@@ -49,4 +49,4 @@ static int cgit_prepare_cache(struct cacheitem *item)
49 } else { 49 } else {
50 item->name = xstrdup(fmt("%s/%s/%s/%s.html", cgit_cache_root, 50 item->name = xstrdup(fmt("%s/%s/%s/%s.html", cgit_cache_root,
51 cgit_repo->url, cgit_query_page, 51 cgit_repo->url, cgit_query_page,
52 cache_safe_filename(cgit_querystring))); 52 cache_safe_filename(cgit_querystring)));
@@ -83,3 +83,3 @@ static void cgit_print_repo_page(struct cacheitem *item)
83 if (cgit_repo->snapshots && !strcmp(cgit_query_page, "snapshot")) { 83 if (cgit_repo->snapshots && !strcmp(cgit_query_page, "snapshot")) {
84 cgit_print_snapshot(item, cgit_query_sha1, "zip", 84 cgit_print_snapshot(item, cgit_query_sha1, "zip",
85 cgit_repo->url, cgit_query_name); 85 cgit_repo->url, cgit_query_name);
@@ -135,3 +135,3 @@ static void cgit_fill_cache(struct cacheitem *item, int use_cache)
135 if (use_cache) { 135 if (use_cache) {
136 stdout2 = chk_positive(dup(STDOUT_FILENO), 136 stdout2 = chk_positive(dup(STDOUT_FILENO),
137 "Preserving STDOUT"); 137 "Preserving STDOUT");
@@ -148,3 +148,3 @@ static void cgit_fill_cache(struct cacheitem *item, int use_cache)
148 chk_zero(close(STDOUT_FILENO), "Close redirected STDOUT"); 148 chk_zero(close(STDOUT_FILENO), "Close redirected STDOUT");
149 chk_positive(dup2(stdout2, STDOUT_FILENO), 149 chk_positive(dup2(stdout2, STDOUT_FILENO),
150 "Restoring original STDOUT"); 150 "Restoring original STDOUT");