: nply/fiche2

commit f9d7f3d5c8f9d98cbc61abe713cee24ac46c12cc
parent 9c2919f01db42e367aae1db4f36e1c7610136796
Author: Björn Ketelaars <bjorn.ketelaars@hydroxide.nl>
Date: Sat, 19 Sep 2015 17:18:41 +0200

WARNING != ERROR
1 file changed, 2 insertions(+), 2 deletions(-)
M
fiche.c
|
4
++--
diff --git a/fiche.c b/fiche.c
@@ -175,7 +175,7 @@ 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)
     {
-        info("ERROR: Couldn't obtain client's hostname\n");
+        info("WARNING: Couldn't obtain client's hostname\n");
         data.hostname = "n/a";
     }
     else

@@ -184,7 +184,7 @@ struct client_data get_client_address(struct sockaddr_in client_address)
     hostaddrp = inet_ntoa(client_address.sin_addr);
     if (hostaddrp == NULL)
     {
-        info("ERROR: Couldn't obtain client's address\n");
+        info("WARNING: Couldn't obtain client's address\n");
         data.ip_address = "n/a";
     }
     else