From d28fffc1a4acf0a1161f485036626a6826ce3dcc Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 15 Sep 2010 16:12:54 +0300 Subject: [PATCH] dns_connect: remove double salen --- src/objects.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/objects.c b/src/objects.c index de005ad..b55c9f8 100644 --- a/src/objects.c +++ b/src/objects.c @@ -867,7 +867,6 @@ static void dns_connect(struct PgSocket *server) struct sockaddr_un sa_un; struct sockaddr_in sa_in; struct sockaddr *sa; - int salen; struct PgDatabase *db = server->pool->db; const char *host = db->host; const char *unix_dir; @@ -897,7 +896,7 @@ static void dns_connect(struct PgSocket *server) return; } - connect_server(server, sa, salen); + connect_server(server, sa, sa_len); } /* the pool needs new connection, if possible */ -- 2.40.0