summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-18 18:48:22 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-18 18:48:22 +0000
commit73a53daf3804209ee7f764641e6f5979e5fb4240 (patch)
tree6061d363db614a82be1b58c657040e13a44d6f6b
parent09c7acf9fc7fa526fc8506ab416c27f947d54472 (diff)
downloadtinyproxy-73a53daf3804209ee7f764641e6f5979e5fb4240.tar.gz
tinyproxy-73a53daf3804209ee7f764641e6f5979e5fb4240.zip
Removed the call to hstrerror() in the getpeer_string() function. It's
not available on all machines.
Diffstat (limited to '')
-rw-r--r--ChangeLog4
-rw-r--r--src/sock.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 41aa085..8fbb8d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2002-04-18 Robert James Kaes <rjkaes@flarenet.com>
+ * src/sock.c (getpeer_string): Removed the hstrerror() call since
+ it's not supported on all machines, and it's not really needed
+ anyway.
+
* src/vector.c:
* src/hashmap.c: Changed all calls to malloc, calloc, free, and
strdup to the appropriate safe variety.
diff --git a/src/sock.c b/src/sock.c
index e2e29f6..9723a36 100644
--- a/src/sock.c
+++ b/src/sock.c
@@ -1,4 +1,4 @@
-/* $Id: sock.c,v 1.28 2002-04-17 20:56:13 rjkaes Exp $
+/* $Id: sock.c,v 1.29 2002-04-18 18:48:22 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
@@ -275,8 +275,7 @@ getpeer_string(int fd, char *string)
strlcpy(string, peername->h_name, PEER_STRING_LENGTH);
else
log_message(LOG_ERR,
- "getpeer_string: gethostbyaddr() error \"%s\".",
- hstrerror(h_errno));
+ "getpeer_string: gethostbyaddr() error");
UNLOCK();
}