summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-16 03:21:46 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-16 03:21:46 +0000
commit0e4436a07044be08b4f35f132e0b27c775609b73 (patch)
tree50d080c6749a1eaaf78c08914300feceb3ea8cea /src
parentca10b1353d59ab1d85ed6654dddec163cb91e347 (diff)
downloadtinyproxy-0e4436a07044be08b4f35f132e0b27c775609b73.tar.gz
tinyproxy-0e4436a07044be08b4f35f132e0b27c775609b73.zip
Tightened the lookup_domain() function.
Diffstat (limited to '')
-rw-r--r--src/sock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sock.c b/src/sock.c
index cefe336..27d1a28 100644
--- a/src/sock.c
+++ b/src/sock.c
@@ -1,4 +1,4 @@
-/* $Id: sock.c,v 1.26 2002-04-15 04:16:01 rjkaes Exp $
+/* $Id: sock.c,v 1.27 2002-04-16 03:21:46 rjkaes Exp $
*
* Sockets are created and destroyed here. When a new connection comes in from
* a client, we need to copy the socket and the create a second socket to the
@@ -33,7 +33,6 @@
* - rjkaes
*/
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
-
#define LOCK() pthread_mutex_lock(&mutex);
#define UNLOCK() pthread_mutex_unlock(&mutex);
@@ -52,7 +51,7 @@ static pthread_mutex_t gethostbyname_mutex = PTHREAD_MUTEX_INITIALIZER;
* Return a negative if there is a problem.
*/
static int
-lookup_domain(struct in_addr *addr, char *domain)
+lookup_domain(struct in_addr *addr, const char *domain)
{
struct hostent *resolv;