aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_lyrics.c
diff options
context:
space:
mode:
authorAndreas Obergrusberger <tradiaz@yahoo.de>2006-08-08 15:45:14 +0000
committerAndreas Obergrusberger <tradiaz@yahoo.de>2006-08-08 15:45:14 +0000
commit6fa01da4abe8da8e714791a41ade8b6201dccbca (patch)
tree61bb0203656fec65bd260195aa7fc0abf1179244 /src/screen_lyrics.c
parent58ed603d3d4b2737de7d01cef79a6fc68c513709 (diff)
downloadmpd-6fa01da4abe8da8e714791a41ade8b6201dccbca.tar.gz
mpd-6fa01da4abe8da8e714791a41ade8b6201dccbca.tar.xz
mpd-6fa01da4abe8da8e714791a41ade8b6201dccbca.zip
avuton fixed some warnings
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4600 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/screen_lyrics.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index 9c159bcdd..c3c98dcee 100644
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
@@ -21,12 +21,15 @@
*
*/
+#define _GNU_SOURCE
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <ncurses.h>
#include <expat.h>
#include <unistd.h>
+#include <glib/gstdio.h>
+#include <stdio.h>
#include "config.h"
#ifndef DISABLE_LYRICS_SCREEN
@@ -244,7 +247,7 @@ int check_lyr_http(char *artist, char *title, char *url)
//we gotta parse that stuff with expat
parser = XML_ParserCreate(NULL);
- XML_SetUserData(parser, NULL);
+ XML_SetUserData(parser, NULL);
XML_SetElementHandler(parser, check_search_response, end_tag);
XML_SetCharacterDataHandler(parser, check_search_success);
@@ -293,7 +296,7 @@ FILE *create_lyr_file(char *artist, char *title)
snprintf(path, 1024, "%s/.lyrics/%s/%s.lyric",
getenv("HOME"), artist, title);
- FILE *file = fopen(path, "w");
+ return fopen(path, "w");
}
char *check_lyr_hd(char *artist, char *title, int how)
@@ -520,7 +523,6 @@ lyrics_cmd(screen_t *screen, mpdclient_t *c, command_t cmd)
{
lw->repaint=1;
static retrieval_spec spec;
- char *msg;
switch(cmd)
{
case CMD_LIST_NEXT: