mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Some fixes to avoid compiler warnings in gcc 4.0
This commit is contained in:
5
svdrp.c
5
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user