author | Lars Hjemli <hjemli@gmail.com> | 2007-05-14 20:58:01 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-14 20:58:01 (UTC) |
commit | 5b94c96a83f19a0175a8e1699d71080965793cc2 (patch) (side-by-side diff) | |
tree | 5cc66ff2675a87c3501b2a3ce8c479f10ce701ff | |
parent | a342ac6b4d7830f82230b0f6a29bc9378d66747e (diff) | |
download | cgit-5b94c96a83f19a0175a8e1699d71080965793cc2.zip cgit-5b94c96a83f19a0175a8e1699d71080965793cc2.tar.gz cgit-5b94c96a83f19a0175a8e1699d71080965793cc2.tar.bz2 |
cgit.c: fix whitespace breakage
-rw-r--r-- | cgit.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -17,3 +17,3 @@ static struct repoinfo *cgit_get_repoinfo(char *url) struct repoinfo *repo; - + for (i=0; i<cgit_repolist.count; i++) { @@ -45,3 +45,3 @@ static int cgit_prepare_cache(struct cacheitem *item) if (!cgit_query_page) { - item->name = xstrdup(fmt("%s/%s/index.html", cgit_cache_root, + item->name = xstrdup(fmt("%s/%s/index.html", cgit_cache_root, cgit_repo->url)); @@ -49,4 +49,4 @@ static int cgit_prepare_cache(struct cacheitem *item) } else { - item->name = xstrdup(fmt("%s/%s/%s/%s.html", cgit_cache_root, - cgit_repo->url, cgit_query_page, + item->name = xstrdup(fmt("%s/%s/%s/%s.html", cgit_cache_root, + cgit_repo->url, cgit_query_page, cache_safe_filename(cgit_querystring))); @@ -83,3 +83,3 @@ static void cgit_print_repo_page(struct cacheitem *item) if (cgit_repo->snapshots && !strcmp(cgit_query_page, "snapshot")) { - cgit_print_snapshot(item, cgit_query_sha1, "zip", + cgit_print_snapshot(item, cgit_query_sha1, "zip", cgit_repo->url, cgit_query_name); @@ -135,3 +135,3 @@ static void cgit_fill_cache(struct cacheitem *item, int use_cache) if (use_cache) { - stdout2 = chk_positive(dup(STDOUT_FILENO), + stdout2 = chk_positive(dup(STDOUT_FILENO), "Preserving STDOUT"); @@ -148,3 +148,3 @@ static void cgit_fill_cache(struct cacheitem *item, int use_cache) chk_zero(close(STDOUT_FILENO), "Close redirected STDOUT"); - chk_positive(dup2(stdout2, STDOUT_FILENO), + chk_positive(dup2(stdout2, STDOUT_FILENO), "Restoring original STDOUT"); |