Commit bb9a5aaf authored by J. Alexander Treuman's avatar J. Alexander Treuman

Renaming stat struct to st, for consistency with the rest of mpd

git-svn-id: https://svn.musicpd.org/mpd/trunk@4435 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent af153d34
......@@ -75,9 +75,9 @@ static int makeFifo(FifoData *fd)
static int checkFifo(FifoData *fd)
{
struct stat info;
struct stat st;
if (stat(fd->path, &info) < 0) {
if (stat(fd->path, &st) < 0) {
if (errno == ENOENT) {
/* Path doesn't exist */
return makeFifo(fd);
......@@ -88,7 +88,7 @@ static int checkFifo(FifoData *fd)
return -1;
}
if (!S_ISFIFO(info.st_mode)) {
if (!S_ISFIFO(st.st_mode)) {
ERROR("\"%s\" already exists, but is not a FIFO\n", fd->path);
return -1;
}
......@@ -131,11 +131,11 @@ static void removeFifo(FifoData *fd)
static void closeFifo(FifoData *fd)
{
struct stat info;
struct stat st;
if (fd->input >= 0) close(fd->input);
if (fd->output >= 0) close(fd->output);
if (fd->created && (stat(fd->path, &info) == 0)) removeFifo(fd);
if (fd->created && (stat(fd->path, &st) == 0)) removeFifo(fd);
}
static int fifo_initDriver(AudioOutput *audioOutput, ConfigParam *param)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment