author | Lars Hjemli <hjemli@gmail.com> | 2008-03-25 01:00:09 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-03-25 01:00:09 (UTC) |
commit | dc3282f0baa14949439593729a45fbe143e3622c (patch) (side-by-side diff) | |
tree | 2eb7eabeb11c4a1c1e132d396ac5c621caf48414 | |
parent | c60781d677ee3b2e53b1f3078fef763622e5effe (diff) | |
download | cgit-dc3282f0baa14949439593729a45fbe143e3622c.zip cgit-dc3282f0baa14949439593729a45fbe143e3622c.tar.gz cgit-dc3282f0baa14949439593729a45fbe143e3622c.tar.bz2 |
Remove global and obsolete cgit_cmd
This variable was obsoleted by cmd.c.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.c | 2 | ||||
-rw-r--r-- | cgit.h | 1 |
2 files changed, 1 insertions, 2 deletions
@@ -176,17 +176,17 @@ static int cgit_prepare_cache(struct cacheitem *item) } if (!ctx.repo) { item->name = xstrdup(fmt("%s/index.html", ctx.cfg.cache_root)); item->ttl = ctx.cfg.cache_root_ttl; return 1; } - if (!cgit_cmd) { + if (!ctx.qry.page) { item->name = xstrdup(fmt("%s/%s/index.%s.html", ctx.cfg.cache_root, cache_safe_filename(ctx.repo->url), cache_safe_filename(ctx.qry.raw))); item->ttl = ctx.cfg.cache_repo_ttl; } else { item->name = xstrdup(fmt("%s/%s/%s/%s.html", ctx.cfg.cache_root, cache_safe_filename(ctx.repo->url), ctx.qry.page, @@ -184,17 +184,16 @@ struct cgit_snapshot_format { int bit; }; extern const char *cgit_version; extern struct cgit_repolist cgit_repolist; extern struct cgit_context ctx; extern const struct cgit_snapshot_format cgit_snapshot_formats[]; -extern int cgit_cmd; extern struct cgit_repo *cgit_add_repo(const char *url); extern struct cgit_repo *cgit_get_repoinfo(const char *url); extern void cgit_repo_config_cb(const char *name, const char *value); extern int chk_zero(int result, char *msg); extern int chk_positive(int result, char *msg); extern int chk_non_negative(int result, char *msg); |