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
1bffdabe
Commit
1bffdabe
authored
Jun 30, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
directory_print: return void
There is no useful return value here.
parent
77e6810c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
directory_print.c
src/directory_print.c
+2
-6
directory_print.h
src/directory_print.h
+1
-1
No files found.
src/directory_print.c
View file @
1bffdabe
...
...
@@ -22,7 +22,7 @@
#include "client.h"
#include "song_print.h"
static
int
static
void
dirvec_print
(
struct
client
*
client
,
const
struct
dirvec
*
dv
)
{
size_t
i
;
...
...
@@ -30,15 +30,11 @@ dirvec_print(struct client *client, const struct dirvec *dv)
for
(
i
=
0
;
i
<
dv
->
nr
;
++
i
)
client_printf
(
client
,
DIRECTORY_DIR
"%s
\n
"
,
directory_get_path
(
dv
->
base
[
i
]));
return
0
;
}
int
void
directory_print
(
struct
client
*
client
,
const
struct
directory
*
directory
)
{
dirvec_print
(
client
,
&
directory
->
children
);
songvec_print
(
client
,
&
directory
->
songs
);
return
0
;
}
src/directory_print.h
View file @
1bffdabe
...
...
@@ -23,7 +23,7 @@
struct
client
;
struct
directory
;
int
void
directory_print
(
struct
client
*
client
,
const
struct
directory
*
directory
);
#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