Skip to content

Commit

Permalink
shed some dead udp_port code
Browse files Browse the repository at this point in the history
  • Loading branch information
dormando committed Jul 12, 2011
1 parent b8c40b0 commit 59be51c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -4769,8 +4769,6 @@ int main (int argc, char **argv) {

/* create the listening socket, bind it, and init */
if (settings.socketpath == NULL) {
int udp_port;

const char *portnumber_filename = getenv("MEMCACHED_PORT_FILENAME");
char temp_portnumber_filename[PATH_MAX];
FILE *portnumber_file = NULL;
Expand Down Expand Up @@ -4800,7 +4798,6 @@ int main (int argc, char **argv) {
* then daemonise if needed, then init libevent (in some cases
* descriptors created by libevent wouldn't survive forking).
*/
udp_port = settings.udpport ? settings.udpport : settings.port;

/* create the UDP listening socket and bind it */
errno = 0;
Expand Down

0 comments on commit 59be51c

Please sign in to comment.