: nply/fiche2

commit 6ee6fa3100537bfbe10bef2c0e11b19b1a88ef84
parent 8b553306f04ca25b51aad877e6f011eb077a1354
Author: solusipse <solus1ps3@gmail.com>
Date: Mon, 16 Sep 2013 22:49:39 +0200

fixing hostname error problem
1 file changed, 2 insertions(+), 1 deletion(-)
M
fiche.c
|
3
++-
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