From: Adam Dickmeiss Date: Mon, 13 Oct 2008 13:17:03 +0000 (+0200) Subject: Functions connection_{get_host,create} static. X-Git-Tag: v1.1.0~105 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=a78bfdc62e206d1c892d2ed8c8bd4325c5583906;p=pazpar2-moved-to-github.git Functions connection_{get_host,create} static. --- diff --git a/src/connection.c b/src/connection.c index 089847b..cdbe4da 100644 --- a/src/connection.c +++ b/src/connection.c @@ -164,7 +164,7 @@ void connection_destroy(struct connection *co) // Creates a new connection for client, associated with the host of // client's database -struct connection *connection_create(struct client *cl) +static struct connection *connection_create(struct client *cl) { struct connection *new; struct host *host = client_get_host(cl); @@ -317,7 +317,7 @@ void connect_resolver_host(struct host *host) } } -struct host *connection_get_host(struct connection *con) +static struct host *connection_get_host(struct connection *con) { return con->host; } diff --git a/src/connection.h b/src/connection.h index 80bc261..13fdd14 100644 --- a/src/connection.h +++ b/src/connection.h @@ -34,9 +34,7 @@ struct host; struct session; void connection_destroy(struct connection *co); -struct connection *connection_create(struct client *cl); void connect_resolver_host(struct host *host); -struct host *connection_get_host(struct connection *con); void connection_set_authentication(struct connection *co, char *auth); int connection_connect(struct connection *con); struct connection *connection_get_available(struct connection *con_list,