X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fsecurity.c;h=b49ba69cd459f5f2640173eb49a3339a8b74ca9a;hp=a17b889c661022f78b0f0465ea1cfd72a7628be1;hb=8eb500e74f1508c4722df217fb60bdf4710fbff6;hpb=ef4edd92f933f235a4ca106491168f317c764ab8 diff --git a/src/security.c b/src/security.c index a17b889c..b49ba69c 100644 --- a/src/security.c +++ b/src/security.c @@ -230,7 +230,7 @@ free_wim_security_data(struct wim_security_data *sd) } struct sd_node { - int32_t security_id; + s32 security_id; u8 hash[SHA1_HASH_SIZE]; struct avl_tree_node index_node; }; @@ -284,7 +284,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. */ -static int32_t +static s32 lookup_sd(struct wim_sd_set *set, const u8 hash[SHA1_HASH_SIZE]) { struct avl_tree_node *res; @@ -305,11 +305,11 @@ lookup_sd(struct wim_sd_set *set, const u8 hash[SHA1_HASH_SIZE]) * the security ID for it. If a new security descriptor cannot be allocated, * return -1. */ -int32_t +s32 sd_set_add_sd(struct wim_sd_set *sd_set, const char *descriptor, size_t size) { u8 hash[SHA1_HASH_SIZE]; - int32_t security_id; + s32 security_id; struct sd_node *new; u8 **descriptors; u64 *sizes;