Replaced exit codes with values that aren't taken by errno
This commit is contained in:
		| @@ -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'.  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user