aboutsummaryrefslogtreecommitdiff
path: root/shared.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/shared.c b/shared.c
index 5757d0c..6fd70a8 100644
--- a/shared.c
+++ b/shared.c
@@ -44,25 +44,10 @@ char *cgit_query_search = NULL;
char *cgit_query_sha1 = NULL;
char *cgit_query_sha2 = NULL;
char *cgit_query_path = NULL;
-char *cgit_query_name = NULL;
int cgit_query_ofs = 0;
int htmlfd = 0;
-int chk_zero(int result, char *msg)
-{
- if (result != 0)
- die("%s: %s", msg, strerror(errno));
- return result;
-}
-
-int chk_positive(int result, char *msg)
-{
- if (result <= 0)
- die("%s: %s", msg, strerror(errno));
- return result;
-}
-
struct repoinfo *add_repo(const char *url)
{
struct repoinfo *ret;
@@ -155,8 +140,6 @@ void cgit_querystring_cb(const char *name, const char *value)
cgit_query_ofs = atoi(value);
} else if (!strcmp(name, "path")) {
cgit_query_path = xstrdup(value);
- } else if (!strcmp(name, "name")) {
- cgit_query_name = xstrdup(value);
}
}