From: wessels <> Date: Sat, 7 Feb 1998 00:30:51 +0000 (+0000) Subject: rename do_reuse to opt_reuseaddr X-Git-Tag: SQUID_3_0_PRE1~4148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b4be6a67291ce530f2dad1e709766ee26f862da;p=thirdparty%2Fsquid.git rename do_reuse to opt_reuseaddr --- diff --git a/src/comm.cc b/src/comm.cc index 1c74a48aab..f3185971e9 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.225 1998/02/05 20:33:58 wessels Exp $ + * $Id: comm.cc,v 1.226 1998/02/06 17:30:51 wessels Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -261,7 +261,7 @@ comm_open(int sock_type, commSetCloseOnExec(new_socket); if (port > (u_short) 0) { commSetNoLinger(new_socket); - if (do_reuse) + if (opt_reuseaddr) commSetReuseAddr(new_socket); } if (addr.s_addr != no_addr.s_addr) { diff --git a/src/globals.h b/src/globals.h index 4ff50917a5..77f8336f17 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1,6 +1,6 @@ /* - * $Id: globals.h,v 1.33 1998/02/04 23:34:28 wessels Exp $ + * $Id: globals.h,v 1.34 1998/02/06 17:30:52 wessels Exp $ */ extern FILE *debug_log; /* NULL */ @@ -48,7 +48,7 @@ extern int config_lineno; /* 0 */ extern int configured_once; /* 0 */ extern int debugLevels[MAX_DEBUG_SECTIONS]; extern int do_mallinfo; /* 0 */ -extern int do_reuse; /* 1 */ +extern int opt_reuseaddr; /* 1 */ extern int hash_links_allocated; extern int icmp_sock; /* -1 */ extern int neighbors_do_private_keys; /* 1 */ diff --git a/src/main.cc b/src/main.cc index ae6b2d91ce..7d50aa3150 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.213 1998/02/04 23:50:26 wessels Exp $ + * $Id: main.cc,v 1.214 1998/02/06 17:30:53 wessels Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -182,7 +182,7 @@ mainParseOptions(int argc, char *argv[]) opt_no_daemon = 1; break; case 'R': - do_reuse = 0; + opt_reuseaddr = 0; break; case 'V': vhost_mode = 1;