diff options
Diffstat (limited to 'apps/metadata/metadata_common.c')
-rw-r--r-- | apps/metadata/metadata_common.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/metadata/metadata_common.c b/apps/metadata/metadata_common.c index 1ad89d1b7a..781123717a 100644 --- a/apps/metadata/metadata_common.c +++ b/apps/metadata/metadata_common.c | |||
@@ -155,7 +155,7 @@ uint64_t get_uint64_le(void* buf) | |||
155 | } | 155 | } |
156 | 156 | ||
157 | /* Read an unaligned 32-bit little endian long from buffer. */ | 157 | /* Read an unaligned 32-bit little endian long from buffer. */ |
158 | unsigned long get_long_le(void* buf) | 158 | uint32_t get_long_le(void* buf) |
159 | { | 159 | { |
160 | unsigned char* p = (unsigned char*) buf; | 160 | unsigned char* p = (unsigned char*) buf; |
161 | 161 | ||
@@ -163,7 +163,7 @@ unsigned long get_long_le(void* buf) | |||
163 | } | 163 | } |
164 | 164 | ||
165 | /* Read an unaligned 16-bit little endian short from buffer. */ | 165 | /* Read an unaligned 16-bit little endian short from buffer. */ |
166 | unsigned short get_short_le(void* buf) | 166 | uint16_t get_short_le(void* buf) |
167 | { | 167 | { |
168 | unsigned char* p = (unsigned char*) buf; | 168 | unsigned char* p = (unsigned char*) buf; |
169 | 169 | ||
@@ -171,7 +171,7 @@ unsigned short get_short_le(void* buf) | |||
171 | } | 171 | } |
172 | 172 | ||
173 | /* Read an unaligned 32-bit big endian long from buffer. */ | 173 | /* Read an unaligned 32-bit big endian long from buffer. */ |
174 | unsigned long get_long_be(void* buf) | 174 | uint32_t get_long_be(void* buf) |
175 | { | 175 | { |
176 | unsigned char* p = (unsigned char*) buf; | 176 | unsigned char* p = (unsigned char*) buf; |
177 | 177 | ||
@@ -179,7 +179,7 @@ unsigned long get_long_be(void* buf) | |||
179 | } | 179 | } |
180 | 180 | ||
181 | /* Read an unaligned 16-bit little endian short from buffer. */ | 181 | /* Read an unaligned 16-bit little endian short from buffer. */ |
182 | unsigned short get_short_be(void* buf) | 182 | uint16_t get_short_be(void* buf) |
183 | { | 183 | { |
184 | unsigned char* p = (unsigned char*) buf; | 184 | unsigned char* p = (unsigned char*) buf; |
185 | 185 | ||
@@ -187,14 +187,14 @@ unsigned short get_short_be(void* buf) | |||
187 | } | 187 | } |
188 | 188 | ||
189 | /* Read an unaligned 32-bit little endian long from buffer. */ | 189 | /* Read an unaligned 32-bit little endian long from buffer. */ |
190 | long get_slong(void* buf) | 190 | int32_t get_slong(void* buf) |
191 | { | 191 | { |
192 | unsigned char* p = (unsigned char*) buf; | 192 | unsigned char* p = (unsigned char*) buf; |
193 | 193 | ||
194 | return p[0] | (p[1] << 8) | (p[2] << 16) | (p[3] << 24); | 194 | return p[0] | (p[1] << 8) | (p[2] << 16) | (p[3] << 24); |
195 | } | 195 | } |
196 | 196 | ||
197 | unsigned long get_itunes_int32(char* value, int count) | 197 | uint32_t get_itunes_int32(char* value, int count) |
198 | { | 198 | { |
199 | static const char hexdigits[] = "0123456789ABCDEF"; | 199 | static const char hexdigits[] = "0123456789ABCDEF"; |
200 | const char* c; | 200 | const char* c; |