diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-06-28 10:24:44 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2005-06-28 10:24:44 +0000 |
commit | 7a89e3bbca49c1c608d81789cf636e670c798929 (patch) | |
tree | 266e8db6cb7831eccab9daa1d8dda33d149c8429 /src/control/hcontrol.c | |
parent | 0350a615b7883df14aafaf7796ae30880b9df3bb (diff) |
Fix compile warnings with gcc-4
Fixed compile warnings with gcc-4 about pointer signedness.
Diffstat (limited to 'src/control/hcontrol.c')
-rw-r--r-- | src/control/hcontrol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/hcontrol.c b/src/control/hcontrol.c index be28d3e0..635f526f 100644 --- a/src/control/hcontrol.c +++ b/src/control/hcontrol.c @@ -292,7 +292,7 @@ static int get_compare_weight(const snd_ctl_elem_id_t *id) "Center", NULL }; - const char *name = id->name, *name1; + const char *name = (char *)id->name, *name1; int res, res1; if ((res = snd_hctl_compare_mixer_priority_lookup((const char **)&name, names, 1000000)) == NOT_FOUND) @@ -472,7 +472,7 @@ static int snd_hctl_compare_default(const snd_hctl_elem_t *c1, if (d != 0) return d; } - res = strcmp(c1->id.name, c2->id.name); + res = strcmp((const char *)c1->id.name, (const char *)c2->id.name); if (res != 0) return res; d = c1->id.index - c2->id.index; @@ -877,7 +877,7 @@ unsigned int snd_hctl_elem_get_subdevice(const snd_hctl_elem_t *obj) const char *snd_hctl_elem_get_name(const snd_hctl_elem_t *obj) { assert(obj); - return obj->id.name; + return (const char *)obj->id.name; } /** |