Browse Source

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

MissValeska 10 years ago
parent
commit
201b69221e
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      src/inet.c

+ 1
- 3
src/inet.c View File

1109
 			const struct sockaddr * to, socklen_t tolen)
1109
 			const struct sockaddr * to, socklen_t tolen)
1110
 {
1110
 {
1111
 	ssize_t err;
1111
 	ssize_t err;
1112
+	char * ipv4_addr;
1112
 	if ((err = sendto(s, msg, len, flags, to, tolen)) == -1) {
1113
 	if ((err = sendto(s, msg, len, flags, to, tolen)) == -1) {
1113
 		switch (errno) {
1114
 		switch (errno) {
1114
 		case EMSGSIZE:
1115
 		case EMSGSIZE:
1117
 						len-(len/2), flags, to, tolen);
1118
 						len-(len/2), flags, to, tolen);
1118
 			break;
1119
 			break;
1119
 		case EFAULT:
1120
 		case EFAULT:
1120
-                    
1121
-                    char ipv4_addr;
1122
-                    
1123
 			error("To Family is: %hu "
1121
 			error("To Family is: %hu "
1124
                                 "To Data is: %s "
1122
                                 "To Data is: %s "
1125
                                 "and: %s", to->sa_family, 
1123
                                 "and: %s", to->sa_family, 

Loading…
Cancel
Save