about summary refs log tree commit diff
path: root/ui-shared.c
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2013-03-04 08:52:33 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2013-03-04 19:50:39 -0500
commitbafab423f20bc1448b293842c235965e1681f07e (patch)
tree18c4bef1e4714c4abd20b8e1d5ec04db3ae3b9ac /ui-shared.c
parentt0107-snapshot: add tests for ZIP archives (diff)
downloadcgit-pink-bafab423f20bc1448b293842c235965e1681f07e.tar.gz
cgit-pink-bafab423f20bc1448b293842c235965e1681f07e.zip
Mark several functions/variables static
Spotted by parsing the output of `gcc -Wmissing-prototypes [...]`.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to '')
-rw-r--r--ui-shared.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ui-shared.c b/ui-shared.c
index af5310b..63a7116 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -121,7 +121,7 @@ const char *cgit_repobasename(const char *reponame)
 	return rvbuf;
 }
 
-char *cgit_currurl()
+static char *cgit_currurl()
 {
 	if (!ctx.cfg.virtual_root)
 		return ctx.cfg.script_name;
@@ -433,8 +433,8 @@ void cgit_stats_link(const char *name, const char *title, const char *class,
 	reporevlink("stats", name, title, class, head, NULL, path);
 }
 
-void cgit_self_link(char *name, const char *title, const char *class,
-		    struct cgit_context *ctx)
+static void cgit_self_link(char *name, const char *title, const char *class,
+			   struct cgit_context *ctx)
 {
 	if (!strcmp(ctx->qry.page, "repolist"))
 		return cgit_index_link(name, title, class, ctx->qry.search, ctx->qry.sort,
@@ -512,8 +512,8 @@ void cgit_object_link(struct object *obj)
 	reporevlink(page, name, NULL, NULL, ctx.qry.head, fullrev, NULL);
 }
 
-struct string_list_item *lookup_path(struct string_list *list,
-				     const char *path)
+static struct string_list_item *lookup_path(struct string_list *list,
+					    const char *path)
 {
 	struct string_list_item *item;
 
@@ -716,16 +716,16 @@ void cgit_print_docend()
 	html("</body>\n</html>\n");
 }
 
-int print_branch_option(const char *refname, const unsigned char *sha1,
-			int flags, void *cb_data)
+static int print_branch_option(const char *refname, const unsigned char *sha1,
+			       int flags, void *cb_data)
 {
 	char *name = (char *)refname;
 	html_option(name, name, ctx.qry.head);
 	return 0;
 }
 
-int print_archive_ref(const char *refname, const unsigned char *sha1,
-		       int flags, void *cb_data)
+static int print_archive_ref(const char *refname, const unsigned char *sha1,
+			     int flags, void *cb_data)
 {
 	struct tag *tag;
 	struct taginfo *info;