Changeset 1301
- Timestamp:
- 21/03/08 16:25:25 (2 years ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/connection.c (modified) (1 diff)
- cherokee/trunk/cherokee/dirs_table.c (modified) (1 diff)
- cherokee/trunk/cherokee/exts_table.c (modified) (2 diffs)
- cherokee/trunk/cherokee/logger_writer.c (modified) (1 diff)
- cherokee/trunk/cherokee/mime.c (modified) (1 diff)
- cherokee/trunk/cherokee/socket.c (modified) (4 diffs)
- cherokee/trunk/cherokee/validator_htpasswd.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1300 r1301 1 2008-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 1 8 2008-03-20 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 9 cherokee/trunk/cherokee/connection.c
r1292 r1301 722 722 cherokee_connection_set_cork (cherokee_connection_t *conn, cherokee_boolean_t enable) 723 723 { 724 #ifdef HAVE_TCP_CORK 725 int fd; 724 726 int on = 0; 725 int fd; 726 727 #ifdef HAVE_TCP_CORK 727 728 728 fd = SOCKET_FD(&conn->socket); 729 729 if (enable) { cherokee/trunk/cherokee/dirs_table.c
r1282 r1301 35 35 36 36 #include "handler.h" 37 #include "util.h" 37 38 38 39 #define ENTRIES "dirs" cherokee/trunk/cherokee/exts_table.c
r1282 r1301 25 25 #include "common-internal.h" 26 26 #include "exts_table.h" 27 #include "util.h" 27 28 28 29 #define ENTRIES "exts" … … 90 91 * plugin entry object. 91 92 */ 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); 93 94 94 95 return cherokee_avl_add_ptr (&et->avl, ext, plugin_entry); cherokee/trunk/cherokee/logger_writer.c
r1131 r1301 176 176 writer->max_bufsize + LOGGER_OVF_BUFSIZE); 177 177 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); 179 180 /* Set log to "unbuffered". 180 181 */ 181 182 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); 183 185 cherokee_buffer_ensure_size ( 184 186 &writer->buffer, cherokee/trunk/cherokee/mime.c
r1131 r1301 24 24 25 25 #include "common-internal.h" 26 27 #include <ctype.h> 26 28 27 29 #include "mime.h" cherokee/trunk/cherokee/socket.c
r1131 r1301 418 418 /* Set the SSL context cache 419 419 */ 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); 421 421 if (re != 1) { 422 422 PRINT_ERROR_S("ERROR: OpenSSL: Unable to set SSL session-id context\n"); … … 849 849 sock->client_addr_len = sizeof(SOCKET_ADDR_UNIX(sock)->sun_family) + listen_to->len; 850 850 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); 852 854 if (re != 0) return ret_error; 853 855 … … 1024 1026 1025 1027 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)); 1027 1029 return ret_error; 1028 1030 } … … 1164 1166 1165 1167 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)); 1167 1169 return ret_error; 1168 1170 } cherokee/trunk/cherokee/validator_htpasswd.c
r1131 r1301 118 118 119 119 static ret_t 120 crypt_r_emu (const char *key, const char *salt, c har *compared)120 crypt_r_emu (const char *key, const char *salt, const char *compared) 121 121 { 122 122 ret_t ret; … … 137 137 check_crypt (char *passwd, char *salt, const char *compared) 138 138 { 139 ret_t ret; 140 char *tmp; 139 ret_t ret; 141 140 142 141 #ifndef HAVE_PTHREAD 142 char *tmp; 143 143 144 tmp = crypt (passwd, salt); 144 145 ret = (strcmp (tmp, compared) == 0) ? ret_ok : ret_deny; 145 146 #else 146 147 # ifdef HAVE_CRYPT_R 147 struct crypt_data data; 148 char *tmp; 149 struct crypt_data data; 148 150 149 151 memset (&data, 0, sizeof(data));