summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 58ed603)
raw | patch | inline | side by side (parent: 58ed603)
author | Andreas Obergrusberger <tradiaz@yahoo.de> | |
Tue, 8 Aug 2006 15:45:14 +0000 (15:45 +0000) | ||
committer | Andreas Obergrusberger <tradiaz@yahoo.de> | |
Tue, 8 Aug 2006 15:45:14 +0000 (15:45 +0000) |
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4600 09075e82-0dd4-0310-85a5-a0d7c8717e4f
src/screen_lyrics.c | patch | blob | history | |
src/screen_play.h | patch | blob | history |
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index 9c159bcdd271ab1c937b6a43f22962999f8ec506..c3c98dcee9fd9d95d4ba69df1c75f7648a72f07d 100644 (file)
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
*
*/
+#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
//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);
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)
{
lw->repaint=1;
static retrieval_spec spec;
- char *msg;
switch(cmd)
{
case CMD_LIST_NEXT:
diff --git a/src/screen_play.h b/src/screen_play.h
index cb56ca348fa7ec8b4e7dea6cccbfbf2d42e0e89f..36d57a2fad07fb5335f4182407dce45c8ecd062b 100644 (file)
--- a/src/screen_play.h
+++ b/src/screen_play.h
-int playlist_save(screen_t *screen, mpdclient_t *c, char *name, char *defaultname);
\ No newline at end of file
+
+int playlist_save(screen_t *screen, mpdclient_t *c, char *name, char *defaultname);