moved die function to core-misc
This commit is contained in:
parent
59b040d26e
commit
dcc4198e58
@ -61,15 +61,6 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void die(char *exit_msg)
|
||||
{
|
||||
fprintf(stderr, "%s\n", exit_msg); //ERR MSG
|
||||
|
||||
why2_clean_memory(why2_get_default_memory_identifier()); //GARBAGE COLLECTOR
|
||||
|
||||
exit(1);
|
||||
}
|
||||
|
||||
char *read_socket(int socket)
|
||||
{
|
||||
FILE *opened = why2_fdopen(socket, "r"); //OPEN socket
|
||||
|
@ -466,3 +466,12 @@ char *why2_generate_key(int key_length)
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
void die(char *exit_msg)
|
||||
{
|
||||
fprintf(stderr, "%s\n", exit_msg); //ERR MSG
|
||||
|
||||
why2_clean_memory(why2_get_default_memory_identifier()); //GARBAGE COLLECTOR
|
||||
|
||||
exit(1);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user