Show
Ignore:
Timestamp:
03/17/08 07:40:41 (21 months ago)
Author:
dsallings
Message:

Handle protocol enums more correctly.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/binary/server/memcached.c

    r746 r752  
    6666static void drive_machine(conn *c); 
    6767static int new_socket(struct addrinfo *ai); 
    68 static int server_socket(const int port, const int prot); 
     68static int server_socket(const int port, enum protocol prot); 
    6969static int try_read_command(conn *c); 
    7070static int try_read_network(conn *c); 
     
    315315 
    316316conn *conn_new(const int sfd, const int init_state, const int event_flags, 
    317                 const int read_buffer_size, const int prot, 
     317                const int read_buffer_size, enum protocol prot, 
    318318                struct event_base *base) { 
    319319    conn *c = conn_from_freelist(); 
     
    30433043} 
    30443044 
    3045 static int server_socket(const int port, const int prot) { 
     3045static int server_socket(const int port, enum protocol prot) { 
    30463046    int sfd; 
    30473047    struct linger ling = {0, 0};