diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/id3.h | 4 | ||||
-rw-r--r-- | firmware/id3.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/firmware/export/id3.h b/firmware/export/id3.h index bb3b6a6fe5..0035fae19a 100644 --- a/firmware/export/id3.h +++ b/firmware/export/id3.h | |||
@@ -234,7 +234,7 @@ bool mp3info(struct mp3entry *entry, const char *filename); | |||
234 | char* id3_get_num_genre(const unsigned int genre_num); | 234 | char* id3_get_num_genre(const unsigned int genre_num); |
235 | char* id3_get_codec(const struct mp3entry* id3); | 235 | char* id3_get_codec(const struct mp3entry* id3); |
236 | int getid3v2len(int fd); | 236 | int getid3v2len(int fd); |
237 | void adjust_mp3entry(struct mp3entry *entry, void *dest, void *orig); | 237 | void adjust_mp3entry(struct mp3entry *entry, void *dest, const void *orig); |
238 | void copy_mp3entry(struct mp3entry *dest, struct mp3entry *orig); | 238 | void copy_mp3entry(struct mp3entry *dest, const struct mp3entry *orig); |
239 | 239 | ||
240 | #endif | 240 | #endif |
diff --git a/firmware/id3.c b/firmware/id3.c index f594528910..6afe2ac304 100644 --- a/firmware/id3.c +++ b/firmware/id3.c | |||
@@ -1231,7 +1231,7 @@ bool mp3info(struct mp3entry *entry, const char *filename) | |||
1231 | return result; | 1231 | return result; |
1232 | } | 1232 | } |
1233 | 1233 | ||
1234 | void adjust_mp3entry(struct mp3entry *entry, void *dest, void *orig) | 1234 | void adjust_mp3entry(struct mp3entry *entry, void *dest, const void *orig) |
1235 | { | 1235 | { |
1236 | long offset; | 1236 | long offset; |
1237 | if (orig > dest) | 1237 | if (orig > dest) |
@@ -1270,7 +1270,7 @@ void adjust_mp3entry(struct mp3entry *entry, void *dest, void *orig) | |||
1270 | #endif | 1270 | #endif |
1271 | } | 1271 | } |
1272 | 1272 | ||
1273 | void copy_mp3entry(struct mp3entry *dest, struct mp3entry *orig) | 1273 | void copy_mp3entry(struct mp3entry *dest, const struct mp3entry *orig) |
1274 | { | 1274 | { |
1275 | memcpy(dest, orig, sizeof(struct mp3entry)); | 1275 | memcpy(dest, orig, sizeof(struct mp3entry)); |
1276 | adjust_mp3entry(dest, dest, orig); | 1276 | adjust_mp3entry(dest, dest, orig); |