]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
please lint.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 16 May 2013 08:25:50 +0000 (08:25 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 16 May 2013 08:25:50 +0000 (08:25 +0000)
git-svn-id: file:///svn/unbound/trunk@2902 be551aaa-1e26-0410-a405-d3ace91eadb9

testcode/petal.c
util/config_file.c

index 435d0b239b73d99cb282b12627ad73854ca69e58..61f8250d89ec14bbc61abc3dae3938380363626e 100644 (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"
index 188bb6d0a34c0fe5886bd94a9ff824deae93292b..820034486c69e1825d3512a55fbae4bc69f93162 100644 (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)