/*
- * Copyright (C) 2003-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2003-2009 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
return (char *)id3_ucs4_latin1duplicate(string);
}
-char *get_stringlist(union id3_field *field)
+static char *get_stringlist(union id3_field *field)
{
unsigned int k, nstrings = id3_field_getnstrings(field);
char *result = NULL;
static int compare_headers(struct mp3header *h1,struct mp3header *h2)
{
- if ((*(uint*)h1) == (*(uint*)h2))
+ if ((*(unsigned int*)h1) == (*(unsigned int*)h2))
return 1;
if ((h1->version == h2->version) &&
(h1->layer == h2->layer) &&
char *taginfo;
afhi->chunks_total = 0;
- afhi->chunk_table = para_malloc(chunk_table_size * sizeof(size_t));
+ afhi->chunk_table = para_malloc(chunk_table_size * sizeof(uint32_t));
taginfo = mp3_get_id3(map, numbytes, fd);
while (1) {
unsigned long freq, br, fl;
if (afhi->chunks_total >= chunk_table_size) {
chunk_table_size *= 2;
afhi->chunk_table = para_realloc(afhi->chunk_table,
- chunk_table_size * sizeof(size_t));
+ chunk_table_size * sizeof(uint32_t));
}
afhi->chunk_table[afhi->chunks_total] = fpos;
// if (afhi->chunks_total < 10 || !(afhi->chunks_total % 1000))