Replaced exit codes with values that aren't taken by errno

Aadhavan Srinivasan 2 years ago
parent 74c5025370
commit ca83bd693b

@ -44,7 +44,7 @@ void create_addr(int network, char* address, int port,struct sockaddr* dest) {
return;
} else {
exit(2);
exit(202);
}
}
@ -61,7 +61,7 @@ int create_local (int network, char transport, char* address, int port,struct so
} else if (network == 6) {
addrlen = sizeof(struct sockaddr_in6);
} else {
exit(7);
exit(207);
}
/* The value of addrlen should be the size of the 'sockaddr'.
@ -89,7 +89,7 @@ int create_remote (int network,char transport,char* address,int port,struct sock
} else if (network == 6) {
addrlen = sizeof(struct sockaddr_in6);
} else {
exit(7);
exit(207);
}
/* The value of addrlen should be the size of the 'sockaddr'.

Loading…
Cancel
Save