diff options
author | Lukas Fleischer <cgit@cryptocrack.de> | 2013-03-04 16:52:33 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-03-05 09:50:39 (JST) |
commit | bafab423f20bc1448b293842c235965e1681f07e (patch) | |
tree | 18c4bef1e4714c4abd20b8e1d5ec04db3ae3b9ac /ui-shared.c | |
parent | d5a43b429a4248a02e3a403f76fff0cbae92ef32 (diff) | |
download | cgit-bafab423f20bc1448b293842c235965e1681f07e.zip cgit-bafab423f20bc1448b293842c235965e1681f07e.tar.gz |
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 'ui-shared.c')
-rw-r--r-- | ui-shared.c | 18 |
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) | |||
121 | return rvbuf; | 121 | return rvbuf; |
122 | } | 122 | } |
123 | 123 | ||
124 | char *cgit_currurl() | 124 | static char *cgit_currurl() |
125 | { | 125 | { |
126 | if (!ctx.cfg.virtual_root) | 126 | if (!ctx.cfg.virtual_root) |
127 | return ctx.cfg.script_name; | 127 | return ctx.cfg.script_name; |
@@ -433,8 +433,8 @@ void cgit_stats_link(const char *name, const char *title, const char *class, | |||
433 | reporevlink("stats", name, title, class, head, NULL, path); | 433 | reporevlink("stats", name, title, class, head, NULL, path); |
434 | } | 434 | } |
435 | 435 | ||
436 | void cgit_self_link(char *name, const char *title, const char *class, | 436 | static void cgit_self_link(char *name, const char *title, const char *class, |
437 | struct cgit_context *ctx) | 437 | struct cgit_context *ctx) |
438 | { | 438 | { |
439 | if (!strcmp(ctx->qry.page, "repolist")) | 439 | if (!strcmp(ctx->qry.page, "repolist")) |
440 | return cgit_index_link(name, title, class, ctx->qry.search, ctx->qry.sort, | 440 | return cgit_index_link(name, title, class, ctx->qry.search, ctx->qry.sort, |
@@ -512,8 +512,8 @@ void cgit_object_link(struct object *obj) | |||
512 | reporevlink(page, name, NULL, NULL, ctx.qry.head, fullrev, NULL); | 512 | reporevlink(page, name, NULL, NULL, ctx.qry.head, fullrev, NULL); |
513 | } | 513 | } |
514 | 514 | ||
515 | struct string_list_item *lookup_path(struct string_list *list, | 515 | static struct string_list_item *lookup_path(struct string_list *list, |
516 | const char *path) | 516 | const char *path) |
517 | { | 517 | { |
518 | struct string_list_item *item; | 518 | struct string_list_item *item; |
519 | 519 | ||
@@ -716,16 +716,16 @@ void cgit_print_docend() | |||
716 | html("</body>\n</html>\n"); | 716 | html("</body>\n</html>\n"); |
717 | } | 717 | } |
718 | 718 | ||
719 | int print_branch_option(const char *refname, const unsigned char *sha1, | 719 | static int print_branch_option(const char *refname, const unsigned char *sha1, |
720 | int flags, void *cb_data) | 720 | int flags, void *cb_data) |
721 | { | 721 | { |
722 | char *name = (char *)refname; | 722 | char *name = (char *)refname; |
723 | html_option(name, name, ctx.qry.head); | 723 | html_option(name, name, ctx.qry.head); |
724 | return 0; | 724 | return 0; |
725 | } | 725 | } |
726 | 726 | ||
727 | int print_archive_ref(const char *refname, const unsigned char *sha1, | 727 | static int print_archive_ref(const char *refname, const unsigned char *sha1, |
728 | int flags, void *cb_data) | 728 | int flags, void *cb_data) |
729 | { | 729 | { |
730 | struct tag *tag; | 730 | struct tag *tag; |
731 | struct taginfo *info; | 731 | struct taginfo *info; |