summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-10-01 12:48:34 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-10-01 12:48:34 +0200
commit4b8ff6190172b812f68b7ec21d348f87dfb0a81a (patch)
tree289494b63d518a2bcb4e07d093aad3ca0d02e32f
parent3f0678244fc81b27e6f1374bfdda5de68839cbff (diff)
downloadvdr-4b8ff6190172b812f68b7ec21d348f87dfb0a81a.tar.gz
vdr-4b8ff6190172b812f68b7ec21d348f87dfb0a81a.tar.bz2
Fixed the FATALERRNO macro to check for a non-zero errno value
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY2
-rw-r--r--tools.h4
3 files changed, 5 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 4c5eada5..7ed40a89 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1233,6 +1233,7 @@ Marco Schlüßler <marco@lordzodiac.de>
for improving resetting CAM connections
for fixing handling EPG data for time shifted events
for fixing detecting short channel names for "Kabel Deutschland"
+ for reporting that the FATALERRNO macro needs to check for a non-zero errno value
Jürgen Schmitz <j.schmitz@web.de>
for reporting a bug in displaying the current channel when switching via the SVDRP
diff --git a/HISTORY b/HISTORY
index d1693956..16b43ed8 100644
--- a/HISTORY
+++ b/HISTORY
@@ -3862,3 +3862,5 @@ Video Disk Recorder Revision History
location (reported by Jon Burgess).
- Fixed a crash in cConfig::Load() when compiling on the PPC (thanks to Sascha
Volkenandt).
+- Fixed the FATALERRNO macro to check for a non-zero errno value (reported by Marco
+ Schlüßler).
diff --git a/tools.h b/tools.h
index 7ad3e763..97f42626 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 1.78 2005/09/25 12:54:58 kls Exp $
+ * $Id: tools.h 1.79 2005/10/01 12:43:31 kls Exp $
*/
#ifndef __TOOLS_H
@@ -45,7 +45,7 @@ extern int SysLogLevel;
#define DELETENULL(p) (delete (p), p = NULL)
#define CHECK(s) { if ((s) < 0) LOG_ERROR; } // used for 'ioctl()' calls
-#define FATALERRNO (errno != EAGAIN && errno != EINTR)
+#define FATALERRNO (errno && errno != EAGAIN && errno != EINTR)
#ifndef __STL_CONFIG_H // in case some plugin needs to use the STL
template<class T> inline T min(T a, T b) { return a <= b ? a : b; }