X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fconnection.c;h=ac946abe12c53c3c914dfda6b0bbabd593dec339;hp=6e942f8eb96a03a92b7e122a59b2a133cdab5f37;hb=6d08eb1614b59d5f86a43edda9db06fca72b76cd;hpb=46e481dc945c5572eb6091a3660f6bf258ee0cfa diff --git a/src/connection.c b/src/connection.c index 6e942f8e..ac946abe 100644 --- a/src/connection.c +++ b/src/connection.c @@ -120,21 +120,10 @@ void dump_connections(void) { for(node = connection_tree->head; node; node = node->next) { c = node->data; - logger(LOG_DEBUG, " %s at %s options %lx socket %d status %04x outbuf %d/%d/%d", + logger(LOG_DEBUG, " %s at %s options %x socket %d status %04x outbuf %d/%d/%d", c->name, c->hostname, c->options, c->socket, bitfield_to_int(&c->status, sizeof c->status), c->outbufsize, c->outbufstart, c->outbuflen); } logger(LOG_DEBUG, "End of connections."); } - -bool read_connection_config(connection_t *c) { - char *fname; - int x; - - xasprintf(&fname, "%s/hosts/%s", confbase, c->name); - x = read_config_file(c->config_tree, fname); - free(fname); - - return x == 0; -}