cleaned up code a bit

This commit is contained in:
2018-03-14 14:46:23 +00:00
parent 25b71a4800
commit de534fed83
3 changed files with 4 additions and 18 deletions

View File

@ -82,11 +82,9 @@
# if defined(HAVE_SYS_MMAN_H)
# include <sys/mman.h>
# endif
# include <errno.h>
# include <unistd.h>
# include <fcntl.h>
# include <sys/types.h>
# include <sys/socket.h>
# include <netinet/in.h>
@ -1792,8 +1790,7 @@ static void set_err_with_syserr (hcl_server_t* server, int syserr, const char* b
int hcl_server_start (hcl_server_t* server, const hcl_bch_t* addrs)
{
sockaddr_t srv_addr;
int srv_fd, sck_fam;
int optval;
int srv_fd, sck_fam, optval;
socklen_t srv_len;
pthread_attr_t thr_attr;