fixing hostname error problem - fiche - A pastebin adjusted for gopher use
(HTM) git clone git://vernunftzentrum.de/fiche.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 6ee6fa3100537bfbe10bef2c0e11b19b1a88ef84
(DIR) parent 8b553306f04ca25b51aad877e6f011eb077a1354
(HTM) Author: solusipse <solus1ps3@gmail.com>
Date: Mon, 16 Sep 2013 22:49:39 +0200
fixing hostname error problem
Diffstat:
fiche.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/fiche.c b/fiche.c
@@ -156,7 +156,8 @@ struct client_data get_client_address(struct sockaddr_in client_address)
hostp = gethostbyaddr((const char *)&client_address.sin_addr.s_addr, sizeof(client_address.sin_addr.s_addr), AF_INET);
if (hostp == NULL)
{
- nerror("ERROR: Couldn't obtain client's hostname");
+ /*nerror("ERROR: Couldn't obtain client's hostname");*/
+ printf("ERROR: Couldn't obtain client's hostname");
data.hostname = "error";
}
else