Changeset 466

Show
Ignore:
Timestamp:
11/16/06 10:32:29 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

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

    r465 r466  
     12006-11-16  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/socket.h: Inclusion of arpa/inet.h has been moved after 
     4        the inclusion of netinet/in.h. 
     5 
     6        * cherokee/fdpoll-kqueue.c: Included sys/types.h. Needed by 
     7        FreeBSD. 
     8 
     9        * cherokee/macros.h: Added stdlib.h inclusion. 
     10 
     11        * cherokee/handler_cgi_base.c (parse_header), 
     12        cherokee/connection.c (get_range): atoll() calls have been 
     13        replaced by strtoll() calls. It was failing on FreeBSD because of 
     14        this. 
     15 
    1162006-11-15  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
    217 
  • cherokee/trunk/cherokee/connection.c

    r433 r466  
    12261226        tmp[num_len] = '\0'; 
    12271227        if (num_len != 0) { 
    1228                 conn->range_start = atoll (tmp); 
     1228                conn->range_start = strtoll (tmp, (char **)NULL, 10); 
    12291229                if (conn->range_start < 0) { 
    12301230                        return ret_error; 
     
    12521252                } 
    12531253                tmp[num_len] = '\0'; 
    1254                 conn->range_end = atoll (tmp); 
     1254                conn->range_end = strtoll (tmp, (char **)NULL, 10); 
    12551255                if (conn->range_end < 1){ 
    12561256                        return ret_error; 
  • cherokee/trunk/cherokee/fdpoll-kqueue.c

    r122 r466  
    2828 
    2929#include <stdio.h> 
     30#include <sys/types.h> 
    3031#include <sys/event.h> 
    3132#include <sys/time.h> 
  • cherokee/trunk/cherokee/handler_cgi_base.c

    r387 r466  
    664664 
    665665                        cherokee_buffer_add (&tmp, begin+16, end - (begin+16)); 
    666                         cgi->content_length = atoll (tmp.buf); 
     666                        cgi->content_length = strtoll (tmp.buf, (char **)NULL, 10); 
    667667                        cherokee_buffer_mrproper (&tmp); 
    668668 
  • cherokee/trunk/cherokee/handler_fcgi.c

    r446 r466  
    293293cherokee_handler_fcgi_free (cherokee_handler_fcgi_t *hdl) 
    294294{ 
     295        TRACE (ENTRIES, "fcgi handler free: %p\n", hdl); 
     296 
    295297        cherokee_socket_close (&hdl->socket); 
    296298        cherokee_socket_mrproper (&hdl->socket); 
  • cherokee/trunk/cherokee/macros.h

    r348 r466  
    3232 
    3333#include <stdio.h> 
     34#include <stdlib.h> 
    3435#include <stdarg.h> 
    3536 
  • cherokee/trunk/cherokee/socket.h

    r458 r466  
    4747#endif 
    4848 
     49#ifdef HAVE_NETINET_IN_H 
     50# include <netinet/in.h> 
     51#endif 
     52 
    4953#ifdef HAVE_ARPA_INET_H 
    5054# include <arpa/inet.h> 
    51 #endif 
    52  
    53 #ifdef HAVE_NETINET_IN_H 
    54 # include <netinet/in.h> 
    5555#endif 
    5656