main.c: fix gcc-2.95 compilation problem

git-svn-id: https://svn.musicpd.org/mpd/trunk@4251 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Eric Wong 2006-06-05 22:26:04 +00:00
parent 9b06d2cd4a
commit 10cf5add40

View File

@ -478,6 +478,7 @@ void killFromPidFile(char * cmd, int killOption) {
/*char buf[32]; /*char buf[32];
struct stat st_cmd; struct stat st_cmd;
struct stat st_exe;*/ struct stat st_exe;*/
FILE * fp;
ConfigParam * pidFileParam = parseConfigFilePath(CONF_PID_FILE, 0); ConfigParam * pidFileParam = parseConfigFilePath(CONF_PID_FILE, 0);
int pid; int pid;
@ -486,7 +487,7 @@ void killFromPidFile(char * cmd, int killOption) {
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
FILE * fp = fopen(pidFileParam->value,"r"); fp = fopen(pidFileParam->value,"r");
if(!fp) { if(!fp) {
ERROR("unable to open %s \"%s\": %s\n", ERROR("unable to open %s \"%s\": %s\n",
CONF_PID_FILE, pidFileParam->value, CONF_PID_FILE, pidFileParam->value,