From c73468ab9d94f48a801008ea4fb15de6880c44e8 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Wed, 15 Jan 2014 00:58:53 -0600 Subject: [PATCH 1/1] lookup_sd(): Make static --- include/wimlib/security.h | 3 --- src/security.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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; -- 2.43.0