From a78bfdc62e206d1c892d2ed8c8bd4325c5583906 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 13 Oct 2008 15:17:03 +0200 Subject: [PATCH] Functions connection_{get_host,create} static. --- src/connection.c | 4 ++-- src/connection.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) 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, -- 1.7.10.4