Fix compile warnings with gcc-4

Fixed compile warnings with gcc-4 about pointer signedness.
This commit is contained in:
Takashi Iwai 2005-06-28 10:24:44 +00:00
parent 0350a615b7
commit 7a89e3bbca
17 changed files with 69 additions and 71 deletions

View file

@ -1228,7 +1228,7 @@ static int parse_defs(snd_config_t *father, input_t *input, int skip, int overri
static void string_print(char *str, int id, snd_output_t *out)
{
unsigned char *p = str;
unsigned char *p = (unsigned char *)str;
if (!id) {
switch (*p) {
case 0:
@ -1268,7 +1268,7 @@ static void string_print(char *str, int id, snd_output_t *out)
return;
quoted:
snd_output_putc(out, '\'');
p = str;
p = (unsigned char *)str;
while (*p) {
int c;
c = *p;