Fixes
wma_common.c: In function 'search_pattern':
wma_common.c:41: warning: format '%u' expects type 'unsigned int', but argument 5 has type 'long int'
wma_common.c: In function 'find_audio_stream_info':
wma_common.c:59: warning: format '%0x' expects type 'unsigned int', but argument 4 has type 'long int'
The cast is neccessary because the type of a pointer difference is
implementation-defined...
if (memcmp(p, pattern, pattern_len))
continue;
PARA_DEBUG_LOG("found %d byte pattern@%d\n",
- pattern_len, p - buf);
+ pattern_len, (int)(p - buf));
return p;
}
PARA_NOTICE_LOG("%d byte pattern not found\n", pattern_len);
if (!p)
return -E_WMA_NO_GUID;
- PARA_DEBUG_LOG("found audio stream guid@%0x\n", p - buf);
+ PARA_DEBUG_LOG("found audio stream guid@%0x\n", (int)(p - buf));
return p - buf + 16;
}