diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-02-11 13:44:07 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-02-11 13:44:07 -0800 |
commit | c985aaf87909ab7f8194b3cfed3a744cbff78fe9 (patch) | |
tree | 37416fd6c423c75204b505e7a71ca1812a3a1f29 /pack-bitmap.c | |
parent | cba07bb6ff58da5aa4538c4a2bbf70b717b172b3 (diff) | |
parent | 167832c2ca8e42572c0e8d329a78dbace2ecf2db (diff) | |
download | git-c985aaf87909ab7f8194b3cfed3a744cbff78fe9.tar.gz |
Merge branch 'jc/unused-symbols'
Mark file-local symbols as "static", and drop functions that nobody
uses.
* jc/unused-symbols:
shallow.c: make check_shallow_file_for_update() static
remote.c: make clear_cas_option() static
urlmatch.c: make match_urls() static
revision.c: make save_parents() and free_saved_parents() static
line-log.c: make line_log_data_init() static
pack-bitmap.c: make pack_bitmap_filename() static
prompt.c: remove git_getpass() nobody uses
http.c: make finish_active_slot() and handle_curl_result() static
Diffstat (limited to 'pack-bitmap.c')
-rw-r--r-- | pack-bitmap.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/pack-bitmap.c b/pack-bitmap.c index 3281df389e..365f9d92ed 100644 --- a/pack-bitmap.c +++ b/pack-bitmap.c @@ -252,6 +252,20 @@ static int load_bitmap_entries_v1(struct bitmap_index *index) return 0; } +static char *pack_bitmap_filename(struct packed_git *p) +{ + char *idx_name; + int len; + + len = strlen(p->pack_name) - strlen(".pack"); + idx_name = xmalloc(len + strlen(".bitmap") + 1); + + memcpy(idx_name, p->pack_name, len); + memcpy(idx_name + len, ".bitmap", strlen(".bitmap") + 1); + + return idx_name; +} + static int open_pack_bitmap_1(struct packed_git *packfile) { int fd; @@ -322,20 +336,6 @@ failed: return -1; } -char *pack_bitmap_filename(struct packed_git *p) -{ - char *idx_name; - int len; - - len = strlen(p->pack_name) - strlen(".pack"); - idx_name = xmalloc(len + strlen(".bitmap") + 1); - - memcpy(idx_name, p->pack_name, len); - memcpy(idx_name + len, ".bitmap", strlen(".bitmap") + 1); - - return idx_name; -} - static int open_pack_bitmap(void) { struct packed_git *p; |