From: Eric Biggers Date: Wed, 15 Jan 2014 06:58:53 +0000 (-0600) Subject: lookup_sd(): Make static X-Git-Tag: v1.6.1~34 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=c73468ab9d94f48a801008ea4fb15de6880c44e8 lookup_sd(): Make static --- diff --git a/include/wimlib/security.h b/include/wimlib/security.h index 9d338a15..71ffb695 100644 --- a/include/wimlib/security.h +++ b/include/wimlib/security.h @@ -36,9 +36,6 @@ struct wim_security_data { extern void destroy_sd_set(struct wim_sd_set *sd_set, bool rollback); -extern int -lookup_sd(struct wim_sd_set *set, const u8 hash[]); - extern int sd_set_add_sd(struct wim_sd_set *sd_set, const char descriptor[], size_t size); diff --git a/src/security.c b/src/security.c index 797345ba..d5fbcbb7 100644 --- a/src/security.c +++ b/src/security.c @@ -398,7 +398,7 @@ insert_sd_node(struct wim_sd_set *set, struct sd_node *new) /* Returns the index of the security descriptor having a SHA1 message digest of * @hash. If not found, return -1. */ -int +static int lookup_sd(struct wim_sd_set *set, const u8 hash[SHA1_HASH_SIZE]) { struct rb_node *node = set->rb_root.rb_node;