aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-06-05 22:26:04 +0000
committerEric Wong <normalperson@yhbt.net>2006-06-05 22:26:04 +0000
commit10cf5add40533f33930fba45d0fc8ccb5bc28dd1 (patch)
treec07a8be441eacd3d50a346d8f2c5e2c4a013a03a
parent9b06d2cd4ac9e4e85c89f09de65b5772a8864a48 (diff)
downloadmpd-10cf5add40533f33930fba45d0fc8ccb5bc28dd1.tar.gz
mpd-10cf5add40533f33930fba45d0fc8ccb5bc28dd1.tar.xz
mpd-10cf5add40533f33930fba45d0fc8ccb5bc28dd1.zip
main.c: fix gcc-2.95 compilation problem
git-svn-id: https://svn.musicpd.org/mpd/trunk@4251 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 304cb5208..422a4620a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -478,6 +478,7 @@ void killFromPidFile(char * cmd, int killOption) {
/*char buf[32];
struct stat st_cmd;
struct stat st_exe;*/
+ FILE * fp;
ConfigParam * pidFileParam = parseConfigFilePath(CONF_PID_FILE, 0);
int pid;
@@ -486,7 +487,7 @@ void killFromPidFile(char * cmd, int killOption) {
exit(EXIT_FAILURE);
}
- FILE * fp = fopen(pidFileParam->value,"r");
+ fp = fopen(pidFileParam->value,"r");
if(!fp) {
ERROR("unable to open %s \"%s\": %s\n",
CONF_PID_FILE, pidFileParam->value,