aboutsummaryrefslogtreecommitdiffstats
path: root/src/InotifySource.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-07 09:35:30 +0200
committerMax Kellermann <max@duempel.org>2013-08-07 10:08:36 +0200
commita27d105dcd1376c1df4ff16e388dfcfa3b355cc6 (patch)
tree6903bc549cc57250bea724bf800a3f7e6812841e /src/InotifySource.cxx
parent67e44b0f2c76a8c4913048fe3b8fe90116fa595b (diff)
downloadmpd-a27d105dcd1376c1df4ff16e388dfcfa3b355cc6.tar.gz
mpd-a27d105dcd1376c1df4ff16e388dfcfa3b355cc6.tar.xz
mpd-a27d105dcd1376c1df4ff16e388dfcfa3b355cc6.zip
FatalError: new library to replace mpd_error.h
Diffstat (limited to '')
-rw-r--r--src/InotifySource.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/InotifySource.cxx b/src/InotifySource.cxx
index 5552ed578..ff161b6c6 100644
--- a/src/InotifySource.cxx
+++ b/src/InotifySource.cxx
@@ -21,7 +21,7 @@
#include "InotifySource.hxx"
#include "util/fifo_buffer.h"
#include "fd_util.h"
-#include "mpd_error.h"
+#include "FatalError.hxx"
#include <glib.h>
@@ -50,14 +50,13 @@ InotifySource::OnSocketReady(gcc_unused unsigned flags)
dest = fifo_buffer_write(buffer, &length);
if (dest == NULL)
- MPD_ERROR("buffer full");
+ FatalError("buffer full");
nbytes = read(Get(), dest, length);
if (nbytes < 0)
- MPD_ERROR("failed to read from inotify: %s",
- g_strerror(errno));
+ FatalSystemError("Failed to read from inotify");
if (nbytes == 0)
- MPD_ERROR("end of file from inotify");
+ FatalError("end of file from inotify");
fifo_buffer_append(buffer, nbytes);