Changeset 1301

Show
Ignore:
Timestamp:
21/03/08 16:25:25 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r1300 r1301  
     12008-03-21  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/exts_table.c, cherokee/validator_htpasswd.c, 
     4        cherokee/logger_writer.c, cherokee/mime.c, cherokee/connection.c, 
     5        cherokee/dirs_table.c, cherokee/socket.c: This patches fixes a few 
     6        harmless compilation warnings. 
     7 
    182008-03-20  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
    29 
  • cherokee/trunk/cherokee/connection.c

    r1292 r1301  
    722722cherokee_connection_set_cork (cherokee_connection_t *conn, cherokee_boolean_t enable) 
    723723{ 
     724#ifdef HAVE_TCP_CORK 
     725        int fd; 
    724726        int on = 0; 
    725         int fd; 
    726  
    727 #ifdef HAVE_TCP_CORK 
     727 
    728728        fd = SOCKET_FD(&conn->socket); 
    729729        if (enable) { 
  • cherokee/trunk/cherokee/dirs_table.c

    r1282 r1301  
    3535 
    3636#include "handler.h" 
     37#include "util.h" 
    3738 
    3839#define ENTRIES "dirs" 
  • cherokee/trunk/cherokee/exts_table.c

    r1282 r1301  
    2525#include "common-internal.h" 
    2626#include "exts_table.h" 
     27#include "util.h" 
    2728 
    2829#define ENTRIES "exts" 
     
    9091         * plugin entry object. 
    9192         */ 
    92         TRACE ("ADD: et %p avl %p ext %s\n", et, &et->avl, ext); 
     93        TRACE (ENTRIES, "ADD: et %p avl %p ext %s\n", et, &et->avl, ext); 
    9394 
    9495        return cherokee_avl_add_ptr (&et->avl, ext, plugin_entry); 
  • cherokee/trunk/cherokee/logger_writer.c

    r1131 r1301  
    176176                        writer->max_bufsize + LOGGER_OVF_BUFSIZE); 
    177177                if (ret != ret_ok) { 
    178                         PRINT_ERROR ("Allocation logger->max_bufsize %u failed !\n", writer->max_bufsize); 
     178                        PRINT_ERROR ("Allocation logger->max_bufsize " FMT_SIZE " failed !\n",  
     179                                     (CST_SIZE) writer->max_bufsize); 
    179180                        /* Set log to "unbuffered". 
    180181                         */ 
    181182                        writer->max_bufsize = 0; 
    182                         PRINT_MSG ("Set logger->writer->max_bufsize %u\n", writer->max_bufsize); 
     183                        PRINT_MSG ("Set logger->writer->max_bufsize " FMT_SIZE "\n",  
     184                                   (CST_SIZE) writer->max_bufsize); 
    183185                        cherokee_buffer_ensure_size ( 
    184186                                &writer->buffer, 
  • cherokee/trunk/cherokee/mime.c

    r1131 r1301  
    2424 
    2525#include "common-internal.h" 
     26 
     27#include <ctype.h> 
    2628 
    2729#include "mime.h" 
  • cherokee/trunk/cherokee/socket.c

    r1131 r1301  
    418418        /* Set the SSL context cache 
    419419         */ 
    420         re = SSL_CTX_set_session_id_context (vserver->context, "SSL", 3); 
     420        re = SSL_CTX_set_session_id_context (vserver->context, (const unsigned char *)"SSL", 3); 
    421421        if (re != 1) { 
    422422                PRINT_ERROR_S("ERROR: OpenSSL: Unable to set SSL session-id context\n"); 
     
    849849        sock->client_addr_len = sizeof(SOCKET_ADDR_UNIX(sock)->sun_family) + listen_to->len; 
    850850 
    851         re = bind (SOCKET_FD(sock), SOCKET_ADDR_UNIX(sock), sock->client_addr_len); 
     851        re = bind (SOCKET_FD(sock),  
     852                   (const struct sockaddr *)SOCKET_ADDR_UNIX(sock),  
     853                   sock->client_addr_len); 
    852854        if (re != 0) return ret_error; 
    853855 
     
    10241026 
    10251027                PRINT_ERROR ("ERROR: SSL_write (%d, ..) -> err=%d '%s'\n",  
    1026                         SOCKET_FD(socket), len, ERR_error_string(re, NULL)); 
     1028                             SOCKET_FD(socket), (int)len, ERR_error_string(re, NULL)); 
    10271029                return ret_error; 
    10281030        } 
     
    11641166 
    11651167                PRINT_ERROR ("ERROR: OpenSSL: SSL_read (%d, ..) -> err=%d '%s'\n",  
    1166                         SOCKET_FD(socket), len, ERR_error_string(re, NULL)); 
     1168                             SOCKET_FD(socket), (int)len, ERR_error_string(re, NULL)); 
    11671169                return ret_error; 
    11681170        } 
  • cherokee/trunk/cherokee/validator_htpasswd.c

    r1131 r1301  
    118118 
    119119static ret_t 
    120 crypt_r_emu (const char *key, const char *salt, char *compared) 
     120crypt_r_emu (const char *key, const char *salt, const char *compared) 
    121121{ 
    122122        ret_t  ret; 
     
    137137check_crypt (char *passwd, char *salt, const char *compared) 
    138138{ 
    139         ret_t  ret; 
    140         char  *tmp; 
     139        ret_t ret; 
    141140 
    142141#ifndef HAVE_PTHREAD 
     142        char *tmp; 
     143 
    143144        tmp = crypt (passwd, salt); 
    144145        ret = (strcmp (tmp, compared) == 0) ? ret_ok : ret_deny; 
    145146#else 
    146147# ifdef HAVE_CRYPT_R 
    147         struct crypt_data data; 
     148        char              *tmp; 
     149        struct crypt_data  data; 
    148150 
    149151        memset (&data, 0, sizeof(data));