aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_mpd.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-05-02 05:10:55 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-05-02 05:10:55 +0000
commitc909270be37026e4877acf556af0556f7d1356c6 (patch)
tree592e4337206471fd99b03f00d0d456187e210096 /plugin_mpd.c
parentb8b8a6a2cf8726a86bc2ba58fc502ce5a4ac2b1d (diff)
downloadlcd4linux-c909270be37026e4877acf556af0556f7d1356c6.tar.gz
some compiler warnings fixed
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@797 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugin_mpd.c')
-rw-r--r--plugin_mpd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugin_mpd.c b/plugin_mpd.c
index 63e2210..8efd7de 100644
--- a/plugin_mpd.c
+++ b/plugin_mpd.c
@@ -64,7 +64,12 @@ static struct Pointer connect()
char *port = "6600";
int iport;
char *test;
- struct Pointer mpd;
+
+ struct Pointer mpd = {
+ .conn = NULL,
+ .status = NULL,
+ .entity = NULL
+ };
if ((test = getenv("MPD_HOST"))) {
host = test;
@@ -228,7 +233,8 @@ static void album(RESULT * result)
#define _mpd_player_get_repeat 004
#define _mpd_player_get_random 005
-void error_callback(MpdObj * mi, int errorid, char *msg, void *userdata)
+void error_callback( __attribute__ ((unused)) MpdObj * mi, int errorid, char *msg, __attribute__ ((unused))
+ void *userdata)
{
printf("Error %i: '%s'\n", errorid, msg);
}