removed union const_hack
The union const_hack is only used at one place in the shout plugin. Remove its global type declaration.
This commit is contained in:
parent
798eeeee63
commit
e8e9438255
@ -40,8 +40,10 @@ struct ogg_vorbis_data {
|
||||
static void add_tag(struct ogg_vorbis_data *od, const char *name, char *value)
|
||||
{
|
||||
if (value) {
|
||||
union const_hack u;
|
||||
u.in = name;
|
||||
union {
|
||||
const char *in;
|
||||
char *out;
|
||||
} u = { .in = name };
|
||||
vorbis_comment_add_tag(&od->vc, u.out, value);
|
||||
}
|
||||
}
|
||||
|
@ -65,9 +65,4 @@ typedef signed long int32_t;
|
||||
|
||||
#endif /* !HAVE_STDINT_H && !HAVE_INTTYPES_H */
|
||||
|
||||
union const_hack {
|
||||
const char *in;
|
||||
char *out;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user