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
8e34c59c
Commit
8e34c59c
authored
Feb 08, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
song_print: song_print() returns void
The only "return" statement always returns 0.
parent
766b9fd4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
dbUtils.c
src/dbUtils.c
+2
-2
song_print.c
src/song_print.c
+7
-6
song_print.h
src/song_print.h
+3
-2
No files found.
src/dbUtils.c
View file @
8e34c59c
...
...
@@ -75,7 +75,7 @@ searchInDirectory(struct song *song, void *_data)
struct
search_data
*
data
=
_data
;
if
(
locate_song_search
(
song
,
data
->
criteria
))
return
song_print_info
(
data
->
client
,
song
);
song_print_info
(
data
->
client
,
song
);
return
0
;
}
...
...
@@ -105,7 +105,7 @@ findInDirectory(struct song *song, void *_data)
struct
search_data
*
data
=
_data
;
if
(
locate_song_match
(
song
,
data
->
criteria
))
return
song_print_info
(
data
->
client
,
song
);
song_print_info
(
data
->
client
,
song
);
return
0
;
}
...
...
src/song_print.c
View file @
8e34c59c
...
...
@@ -46,7 +46,7 @@ song_print_uri(struct client *client, struct song *song)
}
}
int
void
song_print_info
(
struct
client
*
client
,
struct
song
*
song
)
{
song_print_uri
(
client
,
song
);
...
...
@@ -87,18 +87,19 @@ song_print_info(struct client *client, struct song *song)
if
(
song
->
tag
)
tag_print
(
client
,
song
->
tag
);
return
0
;
}
static
int
song_print_info_x
(
struct
song
*
song
,
void
*
data
)
{
struct
client
*
client
=
data
;
return
song_print_info
(
client
,
song
);
song_print_info
(
client
,
song
);
return
0
;
}
int
songvec_print
(
struct
client
*
client
,
const
struct
songvec
*
sv
)
void
songvec_print
(
struct
client
*
client
,
const
struct
songvec
*
sv
)
{
return
songvec_for_each
(
sv
,
song_print_info_x
,
client
);
songvec_for_each
(
sv
,
song_print_info_x
,
client
);
}
src/song_print.h
View file @
8e34c59c
...
...
@@ -24,10 +24,11 @@ struct client;
struct
song
;
struct
songvec
;
int
void
song_print_info
(
struct
client
*
client
,
struct
song
*
song
);
int
songvec_print
(
struct
client
*
client
,
const
struct
songvec
*
sv
);
void
songvec_print
(
struct
client
*
client
,
const
struct
songvec
*
sv
);
void
song_print_uri
(
struct
client
*
client
,
struct
song
*
song
);
...
...
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