diff options
author | Max Kellermann <max@duempel.org> | 2009-02-04 21:02:11 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-04 21:02:11 +0100 |
commit | f81728592278c667f4928d5201cd7932d6c4e8aa (patch) | |
tree | 42be9ecb53d62d2cc8f2ee75a58fdf929001e296 /src | |
parent | cfaede610c5d922bf6c97074ad4b8063f0289527 (diff) | |
download | mpd-f81728592278c667f4928d5201cd7932d6c4e8aa.tar.gz mpd-f81728592278c667f4928d5201cd7932d6c4e8aa.tar.xz mpd-f81728592278c667f4928d5201cd7932d6c4e8aa.zip |
playlist_print: no CamelCase
Renamed one function.
Diffstat (limited to '')
-rw-r--r-- | src/command.c | 4 | ||||
-rw-r--r-- | src/playlist_print.c | 5 | ||||
-rw-r--r-- | src/playlist_print.h | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/command.c b/src/command.c index dd76b9b77..14991740e 100644 --- a/src/command.c +++ b/src/command.c @@ -688,7 +688,7 @@ handle_listplaylist(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) { int ret; - ret = PlaylistInfo(client, argv[1], 0); + ret = spl_print(client, argv[1], 0); if (ret == -1) command_error(client, ACK_ERROR_NO_EXIST, "No such playlist"); @@ -701,7 +701,7 @@ handle_listplaylistinfo(struct client *client, { int ret; - ret = PlaylistInfo(client, argv[1], 1); + ret = spl_print(client, argv[1], 1); if (ret == -1) command_error(client, ACK_ERROR_NO_EXIST, "No such playlist"); diff --git a/src/playlist_print.c b/src/playlist_print.c index df2c7d08c..60696b772 100644 --- a/src/playlist_print.c +++ b/src/playlist_print.c @@ -24,11 +24,12 @@ #include "client.h" int -PlaylistInfo(struct client *client, const char *utf8file, int detail) +spl_print(struct client *client, const char *name_utf8, int detail) { GPtrArray *list; - if (!(list = spl_load(utf8file))) + list = spl_load(name_utf8); + if (list == NULL) return -1; for (unsigned i = 0; i < list->len; ++i) { diff --git a/src/playlist_print.h b/src/playlist_print.h index de60b8949..cf92bfdbb 100644 --- a/src/playlist_print.h +++ b/src/playlist_print.h @@ -22,6 +22,6 @@ struct client; int -PlaylistInfo(struct client *client, const char *utf8file, int detail); +spl_print(struct client *client, const char *name_utf8, int detail); #endif |