summaryrefslogtreecommitdiffstats
path: root/httpd.c
diff options
context:
space:
mode:
authordscho <dscho>2002-08-19 10:41:11 +0000
committerdscho <dscho>2002-08-19 10:41:11 +0000
commit598c460ceb842d0cf9df89f93642a1594f35b993 (patch)
tree6dc08fdcc2a9065fb9f75e759b725c1cf7c372e0 /httpd.c
parentfde8958dc5e4e226a76ae0a26d751b6f185cf7ee (diff)
downloadlibtdevnc-598c460ceb842d0cf9df89f93642a1594f35b993.tar.gz
libtdevnc-598c460ceb842d0cf9df89f93642a1594f35b993.zip
unwarn compilation
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/httpd.c b/httpd.c
index 813b239..dc49870 100644
--- a/httpd.c
+++ b/httpd.c
@@ -22,6 +22,7 @@
*/
#include <stdio.h>
+#include <unistd.h>
#include <sys/types.h>
#ifdef WIN32
#include <winsock.h>
@@ -68,7 +69,6 @@ FILE* httpFP = NULL;
static char buf[BUF_SIZE];
static size_t buf_filled=0;
-
/*
* httpInitSockets sets up the TCP socket to listen for HTTP connections.
*/
@@ -303,7 +303,7 @@ httpProcessInput(rfbScreenInfoPtr rfbScreen)
/* Open the file */
- if ((fd = fopen(fullFname, "r")) <= 0) {
+ if ((fd = fopen(fullFname, "r")) == 0) {
rfbLogPerror("httpProcessInput: open");
WriteExact(&cl, NOT_FOUND_STR, strlen(NOT_FOUND_STR));
httpCloseSock(rfbScreen);