Updated return values to better conform with the other functions
This commit is contained in:
@@ -113,7 +113,7 @@ int create_remote (int network,char transport,char* address,int port,struct sock
|
|||||||
} else if (network == 6) {
|
} else if (network == 6) {
|
||||||
addrlen = sizeof(struct sockaddr_in6);
|
addrlen = sizeof(struct sockaddr_in6);
|
||||||
} else {
|
} else {
|
||||||
return (-1 * errno);
|
return (-202);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The value of addrlen should be the size of the 'sockaddr'.
|
/* 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) {
|
} else if (network == 6) {
|
||||||
return AF_INET6;
|
return AF_INET6;
|
||||||
} else {
|
} else {
|
||||||
return -207;
|
return -202;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user