summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-02-02 13:44:24 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-02-02 13:44:24 +0100
commitddec0a101bfb97caa23ca731b8041547717a5eb3 (patch)
tree10ae250d9740fae442ca54466ca69e175f223ee9 /tools.c
parent2a31a4eca81b75bfab9a9fbbe2aa8f9eeec38f9f (diff)
downloadvdr-ddec0a101bfb97caa23ca731b8041547717a5eb3.tar.gz
vdr-ddec0a101bfb97caa23ca731b8041547717a5eb3.tar.bz2
Changed the [dei]syslog macros to use var args; fixed error handling in establishing an SVDRP connection
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools.c b/tools.c
index dc579e55..0aedad8d 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.53 2002/01/27 12:36:23 kls Exp $
+ * $Id: tools.c 1.54 2002/02/02 13:03:40 kls Exp $
*/
#include "tools.h"
@@ -404,9 +404,8 @@ char *ReadLink(const char *FileName)
if (n < 0) {
if (errno == ENOENT || errno == EINVAL) // file doesn't exist or is not a symlink
TargetName = FileName;
- else { // some other error occurred
+ else // some other error occurred
LOG_ERROR_STR(FileName);
- }
}
else if (n < int(sizeof(RealName))) { // got it!
RealName[n] = 0;