Remove unused functions and variables.
This commit is contained in:
parent
9eca49329d
commit
af2e0c9a32
3 changed files with 1 additions and 18 deletions
|
|
@ -466,12 +466,6 @@ static void handle_meta_write(int sock, short events, void *data) {
|
||||||
event_del(&c->outevent);
|
event_del(&c->outevent);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handle_meta_connection_error(struct bufferevent *event, short what, void *data) {
|
|
||||||
connection_t *c = data;
|
|
||||||
logger(LOG_ERR, "handle_meta_connection_error() called: %d: %s", what, strerror(errno));
|
|
||||||
terminate_connection(c, c->status.active);
|
|
||||||
}
|
|
||||||
|
|
||||||
void setup_outgoing_connection(outgoing_t *outgoing) {
|
void setup_outgoing_connection(outgoing_t *outgoing) {
|
||||||
connection_t *c;
|
connection_t *c;
|
||||||
node_t *n;
|
node_t *n;
|
||||||
|
|
|
||||||
|
|
@ -40,11 +40,6 @@ extern char *identname;
|
||||||
extern char **g_argv;
|
extern char **g_argv;
|
||||||
extern bool use_logfile;
|
extern bool use_logfile;
|
||||||
|
|
||||||
static void memory_full(int size) {
|
|
||||||
logger(LOG_ERR, "Memory exhausted (couldn't allocate %d bytes), exitting.", size);
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Some functions the less gifted operating systems might lack... */
|
/* Some functions the less gifted operating systems might lack... */
|
||||||
|
|
||||||
#ifdef HAVE_MINGW
|
#ifdef HAVE_MINGW
|
||||||
|
|
@ -353,7 +348,7 @@ static struct {
|
||||||
void setup_signals(void) {
|
void setup_signals(void) {
|
||||||
#ifndef HAVE_MINGW
|
#ifndef HAVE_MINGW
|
||||||
int i;
|
int i;
|
||||||
struct sigaction act = {NULL};
|
struct sigaction act = {{NULL}};
|
||||||
|
|
||||||
sigemptyset(&act.sa_mask);
|
sigemptyset(&act.sa_mask);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,12 +38,6 @@ static bool show_help = false;
|
||||||
/* If nonzero, print the version on standard output and exit. */
|
/* If nonzero, print the version on standard output and exit. */
|
||||||
static bool show_version = false;
|
static bool show_version = false;
|
||||||
|
|
||||||
/* If nonzero, it will attempt to kill a running tincd and exit. */
|
|
||||||
static int kill_tincd = 0;
|
|
||||||
|
|
||||||
/* If nonzero, generate public/private keypair for this host/net. */
|
|
||||||
static int generate_keys = 0;
|
|
||||||
|
|
||||||
static char *name = NULL;
|
static char *name = NULL;
|
||||||
static char *identname = NULL; /* program name for syslog */
|
static char *identname = NULL; /* program name for syslog */
|
||||||
static char *controlcookiename = NULL; /* cookie file location */
|
static char *controlcookiename = NULL; /* cookie file location */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue