Unidiff1 files changed, 0 insertions, 2 deletions
|
diff --git a/shared.c b/shared.c index 808e674..76e10d0 100644 --- a/ shared.c+++ b/ shared.c |
|
@@ -11,14 +11,12 @@ |
11 | struct cgit_repolist cgit_repolist; |
11 | struct cgit_repolist cgit_repolist; |
12 | struct cgit_context ctx; |
12 | struct cgit_context ctx; |
13 | int cgit_cmd; |
13 | int cgit_cmd; |
14 | |
14 | |
15 | const char *cgit_version = CGIT_VERSION; |
15 | const char *cgit_version = CGIT_VERSION; |
16 | |
16 | |
17 | int htmlfd = 0; |
| |
18 | |
| |
19 | void cgit_prepare_context(struct cgit_context *ctx) |
17 | void cgit_prepare_context(struct cgit_context *ctx) |
20 | { |
18 | { |
21 | memset(ctx, 0, sizeof(ctx)); |
19 | memset(ctx, 0, sizeof(ctx)); |
22 | ctx->cfg.agefile = "info/web/last-modified"; |
20 | ctx->cfg.agefile = "info/web/last-modified"; |
23 | ctx->cfg.cache_dynamic_ttl = 5; |
21 | ctx->cfg.cache_dynamic_ttl = 5; |
24 | ctx->cfg.cache_max_create_time = 5; |
22 | ctx->cfg.cache_max_create_time = 5; |
|