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