"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;
char buf[16384];
char* at = buf;
size_t avail = sizeof(buf);
- int r;
+ size_t r;
FILE* in = fopen(fname,
#ifndef USE_WINSOCK
"r"
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)