aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2006-07-23 23:12:44 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2006-07-23 23:12:44 +0000
commitbb9a5aaf2b9468869c4a8f9c8ed1ae662c7f16bd (patch)
treeccca0e2eec4dff22f86dfd1148caa220593cffd6 /src
parentaf153d343b7267e97965d2954e70a8bb99284c97 (diff)
downloadmpd-bb9a5aaf2b9468869c4a8f9c8ed1ae662c7f16bd.tar.gz
mpd-bb9a5aaf2b9468869c4a8f9c8ed1ae662c7f16bd.tar.xz
mpd-bb9a5aaf2b9468869c4a8f9c8ed1ae662c7f16bd.zip
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
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_fifo.c10
1 files changed, 5 insertions, 5 deletions
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)