Commit 33fa2581 authored by Mark Fasheh's avatar Mark Fasheh

Make a few local declarations static.

Signed-off-by: 's avatarMark Fasheh <mfasheh@suse.de>
parent ae8ea95c
......@@ -93,7 +93,7 @@ struct murmur3_running_checksum {
};
DECLARE_RUNNING_CSUM_CAST_FUNCS(murmur3_running_checksum);
struct running_checksum *murmur3_start_running_checksum(void)
static struct running_checksum *murmur3_start_running_checksum(void)
{
struct murmur3_running_checksum *c =
calloc(1, sizeof(struct murmur3_running_checksum));
......@@ -265,7 +265,7 @@ static void murmur3_checksum_block(char *buf, int len, unsigned char *digest)
}
struct csum_module_ops ops_murmur3 = {
static struct csum_module_ops ops_murmur3 = {
.init = murmur3_init_hash,
.checksum_block = murmur3_checksum_block,
.start_running_checksum = murmur3_start_running_checksum,
......
......@@ -75,7 +75,7 @@ static void sha256_finish_running_checksum(struct running_checksum *_c,
free(c);
}
struct csum_module_ops ops_sha256 = {
static struct csum_module_ops ops_sha256 = {
.init = sha256_init_hash,
.checksum_block = sha256_checksum_block,
.start_running_checksum = sha256_start_running_checksum,
......
......@@ -72,7 +72,7 @@ static void xxhash_finish_running_checksum(struct running_checksum *_c,
free(c);
}
struct csum_module_ops ops_xxhash = {
static struct csum_module_ops ops_xxhash = {
.init = xxhash_init_hash,
.checksum_block = xxhash_checksum_block,
.start_running_checksum = xxhash_start_running_checksum,
......
......@@ -26,7 +26,7 @@
unsigned int digest_len = 0;
char hash_type[8];
struct csum_module *modules[] = {
static struct csum_module *modules[] = {
&csum_module_murmur3,
&csum_module_sha256,
&csum_module_xxhash,
......
......@@ -27,7 +27,7 @@
static GMutex filerec_fd_mutex;
struct list_head filerec_list;
struct rb_root filerec_by_inum = RB_ROOT;
static struct rb_root filerec_by_inum = RB_ROOT;
unsigned long long num_filerecs = 0ULL;
declare_alloc_tracking(filerec);
......
......@@ -134,7 +134,7 @@ static void insert_dupe_extents(struct results_tree *res,
rb_insert_color(&dext->de_node, &res->root);
}
struct dupe_extents *find_dupe_extents(struct results_tree *res,
static struct dupe_extents *find_dupe_extents(struct results_tree *res,
unsigned char *digest, uint64_t len)
{
struct rb_node *n = res->root.rb_node;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment