From e8e94382554320c078397a3c053be4fb2f31baeb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Sep 2008 15:51:31 +0200 Subject: removed union const_hack The union const_hack is only used at one place in the shout plugin. Remove its global type declaration. --- src/audioOutputs/audioOutput_shout_ogg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/audioOutputs/audioOutput_shout_ogg.c') diff --git a/src/audioOutputs/audioOutput_shout_ogg.c b/src/audioOutputs/audioOutput_shout_ogg.c index aa96c4032..d0303b3bb 100644 --- a/src/audioOutputs/audioOutput_shout_ogg.c +++ b/src/audioOutputs/audioOutput_shout_ogg.c @@ -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); } } -- cgit v1.2.3