Changeset 729
- Timestamp:
- 02/29/08 19:43:21 (9 months ago)
- Files:
-
- trunk/server/memcached.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/server/memcached.c
r728 r729 2391 2391 } 2392 2392 2393 2394 2393 static int server_socket(const int port, const bool is_udp) { 2395 2394 int sfd; … … 2432 2431 } 2433 2432 2434 conn *conn_ptr = NULL;2435 2433 for (next= ai; next; next= next->ai_next) { 2436 2434 conn *listen_conn_add; … … 2484 2482 } 2485 2483 2486 if (listen_conn == NULL) { 2487 conn_ptr = listen_conn = listen_conn_add; 2488 } else { 2489 conn_ptr->next= listen_conn_add; 2490 } 2484 listen_conn_add->next = listen_conn; 2485 listen_conn = listen_conn_add; 2491 2486 } 2492 2487 } … … 2494 2489 freeaddrinfo(ai); 2495 2490 2496 if (success == 0) 2497 return 1; 2498 2499 return 0; 2491 /* Return zero iff we detected no errors in starting up connections */ 2492 return success == 0; 2500 2493 } 2501 2494
