Skip to content

Commit

Permalink
core: removed unused MAX_LISTEN
Browse files Browse the repository at this point in the history
- it was printed in version output, not having any relevance anymore

(cherry picked from commit 79aa720)
  • Loading branch information
miconda committed Aug 17, 2018
1 parent e819127 commit 70a7605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/core/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
#define TLS_CA_FILE 0 /*!< no CA list file by default */
#define TLS_CRL_FILE 0 /*!< no CRL by default */

#define MAX_LISTEN 16 /*!< maximum number of addresses on which we will listen */

#define CHILD_NO 8 /*!< default number of child processes started */

#define RT_NO 2 /*!< routing tables number */
Expand Down
11 changes: 2 additions & 9 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ void print_ct_constants(void)
printf("SHM_MEM_SIZE=%d, ", SHM_MEM_SIZE);
#endif
*/
printf("MAX_RECV_BUFFER_SIZE %d, MAX_LISTEN %d,"
printf("MAX_RECV_BUFFER_SIZE %d"
" MAX_URI_SIZE %d, BUF_SIZE %d, DEFAULT PKG_SIZE %uMB\n",
MAX_RECV_BUFFER_SIZE, MAX_LISTEN, MAX_URI_SIZE,
MAX_RECV_BUFFER_SIZE, MAX_URI_SIZE,
BUF_SIZE, PKG_MEM_SIZE);
#ifdef USE_TCP
printf("poll method support: %s.\n", poll_support);
Expand All @@ -245,7 +245,6 @@ void print_internals(void)
printf(" Default paths to modules: %s\n", MODS_DIR);
printf(" Compile flags: %s\n", ver_flags );
printf(" MAX_RECV_BUFFER_SIZE=%d\n", MAX_RECV_BUFFER_SIZE);
printf(" MAX_LISTEN=%d\n", MAX_LISTEN);
printf(" MAX_URI_SIZE=%d\n", MAX_URI_SIZE);
printf(" BUF_SIZE=%d\n", BUF_SIZE);
printf(" DEFAULT PKG_SIZE=%uMB\n", PKG_MEM_SIZE);
Expand Down Expand Up @@ -421,12 +420,6 @@ int pmtu_discovery = 0;

int auto_bind_ipv6 = 0;

#if 0
char* names[MAX_LISTEN]; /* our names */
int names_len[MAX_LISTEN]; /* lengths of the names*/
struct ip_addr addresses[MAX_LISTEN]; /* our ips */
int addresses_no=0; /* number of names/ips */
#endif
struct socket_info* udp_listen=0;
#ifdef USE_TCP
int tcp_main_pid=0; /* set after the tcp main process is started */
Expand Down

0 comments on commit 70a7605

Please sign in to comment.