Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
e8e94382
Commit
e8e94382
authored
Sep 29, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed union const_hack
The union const_hack is only used at one place in the shout plugin. Remove its global type declaration.
parent
798eeeee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
audioOutput_shout_ogg.c
src/audioOutputs/audioOutput_shout_ogg.c
+4
-2
mpd_types.h
src/mpd_types.h
+0
-5
No files found.
src/audioOutputs/audioOutput_shout_ogg.c
View file @
e8e94382
...
...
@@ -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
);
}
}
...
...
src/mpd_types.h
View file @
e8e94382
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment