diff options
author | 2019-12-10 21:00:28 -0800 | |
---|---|---|
committer | 2020-04-12 16:05:01 -0700 | |
commit | 8bd04f650342fd7225765ef6194c411bc54ce7e5 (patch) | |
tree | 4823416e0241626a30921330e146901277cf9f2e /src/img4.c | |
parent | 791c218b48b6557f24d479a7aa7d6586a612a128 (diff) | |
download | idevicerestore-8bd04f650342fd7225765ef6194c411bc54ce7e5.tar.gz idevicerestore-8bd04f650342fd7225765ef6194c411bc54ce7e5.tar.bz2 |
Fix missing declaration warnings
Allows better compilation by the compiler.
Diffstat (limited to 'src/img4.c')
-rw-r--r-- | src/img4.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -265,7 +265,7 @@ static const unsigned char *asn1_find_element(unsigned int index, unsigned char return &data[off]; } -const char *_img4_get_component_tag(const char *compname) +static const char *_img4_get_component_tag(const char *compname) { struct comp_tags { const char *comp; @@ -457,7 +457,7 @@ int img4_stitch_component(const char* component_name, const unsigned char* compo | (((x) & 0x000000FF) << 24)) #endif -void _manifest_write_key_value(unsigned char **p, unsigned int *length, const char *tag, int type, void *value, int size) +static void _manifest_write_key_value(unsigned char **p, unsigned int *length, const char *tag, int type, void *value, int size) { uint32_t utag = __bswap_32(*(uint32_t*)tag); asn1_write_priv_element(p, length, utag); @@ -490,7 +490,7 @@ void _manifest_write_key_value(unsigned char **p, unsigned int *length, const ch *p += this_length + outer_length + inner_length; } -void _manifest_write_component(unsigned char **p, unsigned int *length, const char *tag, plist_t comp) +static void _manifest_write_component(unsigned char **p, unsigned int *length, const char *tag, plist_t comp) { uint32_t utag = __bswap_32(*(uint32_t*)tag); asn1_write_priv_element(p, length, utag); |