okay, so I will need to find another way to display an ipv4 address in a human readable format.

This commit is contained in:
MissValeska 2014-10-26 07:28:07 -07:00
parent 67b7f162ff
commit 201b69221e

View File

@ -1109,6 +1109,7 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
const struct sockaddr * to, socklen_t tolen)
{
ssize_t err;
char * ipv4_addr;
if ((err = sendto(s, msg, len, flags, to, tolen)) == -1) {
switch (errno) {
case EMSGSIZE:
@ -1117,9 +1118,6 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
len-(len/2), flags, to, tolen);
break;
case EFAULT:
char ipv4_addr;
error("To Family is: %hu "
"To Data is: %s "
"and: %s", to->sa_family,