added newline symbol at the end of two error messages
This commit is contained in:
5
fiche.c
5
fiche.c
@@ -156,8 +156,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);
|
hostp = gethostbyaddr((const char *)&client_address.sin_addr.s_addr, sizeof(client_address.sin_addr.s_addr), AF_INET);
|
||||||
if (hostp == NULL)
|
if (hostp == NULL)
|
||||||
{
|
{
|
||||||
/*nerror("ERROR: Couldn't obtain client's hostname");*/
|
printf("ERROR: Couldn't obtain client's hostname\n");
|
||||||
printf("ERROR: Couldn't obtain client's hostname");
|
|
||||||
data.hostname = "error";
|
data.hostname = "error";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -166,7 +165,7 @@ struct client_data get_client_address(struct sockaddr_in client_address)
|
|||||||
hostaddrp = inet_ntoa(client_address.sin_addr);
|
hostaddrp = inet_ntoa(client_address.sin_addr);
|
||||||
if (hostaddrp == NULL)
|
if (hostaddrp == NULL)
|
||||||
{
|
{
|
||||||
nerror("ERROR: Couldn't obtain client's address");
|
printf("ERROR: Couldn't obtain client's address\n");
|
||||||
data.ip_address = "error";
|
data.ip_address = "error";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user