summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-03-20 10:10:38 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-03-20 10:10:38 +0100
commite760b14f646004a7fe99e4561156a132a0572cdb (patch)
treee90c068eea96be4e3a98fd2f734617032e859182 /svdrp.c
parent86a9d179bd27177fafa0d0b5931c377e8b90e9d5 (diff)
downloadvdr-e760b14f646004a7fe99e4561156a132a0572cdb.tar.gz
vdr-e760b14f646004a7fe99e4561156a132a0572cdb.tar.bz2
Some fixes to avoid compiler warnings in gcc 4.0
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/svdrp.c b/svdrp.c
index 1981f6e8..be7d161b 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 1.67 2004/12/26 12:23:55 kls Exp $
+ * $Id: svdrp.c 1.68 2005/03/19 16:05:33 kls Exp $
*/
#include "svdrp.h"
@@ -111,7 +111,8 @@ int cSocket::Accept(void)
bool accepted = SVDRPhosts.Acceptable(clientname.sin_addr.s_addr);
if (!accepted) {
const char *s = "Access denied!\n";
- write(newsock, s, strlen(s));
+ if (write(newsock, s, strlen(s)) < 0)
+ LOG_ERROR;
close(newsock);
newsock = -1;
}