please lint.

git-svn-id: file:///svn/unbound/trunk@2902 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2013-05-16 08:25:50 +00:00
parent bee14bb0e2
commit d68e0595b4
2 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -329,7 +329,7 @@ int config_set_option(struct config_file* cfg, const char* opt,
free(cfg->logfile);
return (cfg->logfile = strdup(val)) != NULL;
}
else S_NUMBER_NONZERO("max-udp-size:", max_udp_size)
else S_SIZET_NONZERO("max-udp-size:", max_udp_size)
else S_YNO("use-syslog:", use_syslog)
else S_YNO("extended-statistics:", stat_extended)
else S_YNO("statistics-cumulative:", stat_cumulative)