mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-23 18:24:58 +02:00
please lint.
git-svn-id: file:///svn/unbound/trunk@2902 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+3
-3
@@ -349,14 +349,14 @@ provide_file_10(SSL* ssl, char* fname)
|
||||
"rb"
|
||||
#endif
|
||||
);
|
||||
int r;
|
||||
size_t r;
|
||||
const char* rcode = "200 OK";
|
||||
if(!in) {
|
||||
char hdr[1024];
|
||||
rcode = "404 File not found";
|
||||
snprintf(hdr, sizeof(hdr), "HTTP/1.1 %s\r\n\r\n", rcode);
|
||||
r = strlen(hdr);
|
||||
if(SSL_write(ssl, hdr, r) <= 0) {
|
||||
if(SSL_write(ssl, hdr, (int)r) <= 0) {
|
||||
/* write failure */
|
||||
}
|
||||
return;
|
||||
@@ -414,7 +414,7 @@ provide_file_chunked(SSL* ssl, char* fname)
|
||||
char buf[16384];
|
||||
char* at = buf;
|
||||
size_t avail = sizeof(buf);
|
||||
int r;
|
||||
size_t r;
|
||||
FILE* in = fopen(fname,
|
||||
#ifndef USE_WINSOCK
|
||||
"r"
|
||||
|
||||
Reference in New Issue
Block a user