diff options
author | dscho <dscho> | 2002-08-19 10:41:11 +0000 |
---|---|---|
committer | dscho <dscho> | 2002-08-19 10:41:11 +0000 |
commit | 598c460ceb842d0cf9df89f93642a1594f35b993 (patch) | |
tree | 6dc08fdcc2a9065fb9f75e759b725c1cf7c372e0 /httpd.c | |
parent | fde8958dc5e4e226a76ae0a26d751b6f185cf7ee (diff) | |
download | libtdevnc-598c460ceb842d0cf9df89f93642a1594f35b993.tar.gz libtdevnc-598c460ceb842d0cf9df89f93642a1594f35b993.zip |
unwarn compilation
Diffstat (limited to 'httpd.c')
-rw-r--r-- | httpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |