From bb9a5aaf2b9468869c4a8f9c8ed1ae662c7f16bd Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Sun, 23 Jul 2006 23:12:44 +0000 Subject: 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 --- src/audioOutputs/audioOutput_fifo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/audioOutputs') diff --git a/src/audioOutputs/audioOutput_fifo.c b/src/audioOutputs/audioOutput_fifo.c index 58bf2c265..d77e7e81c 100644 --- a/src/audioOutputs/audioOutput_fifo.c +++ b/src/audioOutputs/audioOutput_fifo.c @@ -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) -- cgit v1.2.3