Updated return values to better conform with the other functions

master
Aadhavan Srinivasan 2 years ago
parent ad0966f749
commit 94e9ba3b57

@ -113,7 +113,7 @@ int create_remote (int network,char transport,char* address,int port,struct sock
} else if (network == 6) {
addrlen = sizeof(struct sockaddr_in6);
} else {
return (-1 * errno);
return (-202);
}
/* The value of addrlen should be the size of the 'sockaddr'.
@ -145,7 +145,7 @@ int int_to_inet(int network) {
} else if (network == 6) {
return AF_INET6;
} else {
return -207;
return -202;
}
}

Loading…
Cancel
Save