instead of using perror() use printf(). Removes ugly and useless error codes. While here move function to *.c
This commit is contained in:
2
fiche.h
2
fiche.h
@@ -80,7 +80,7 @@ int create_directory(char *slug);
|
||||
int check_protocol(char *buffer);
|
||||
|
||||
void bind_to_port(int listen_socket, struct sockaddr_in serveraddr);
|
||||
void error(char *error_code){perror(error_code); exit(1);}
|
||||
void error(char *buffer);
|
||||
void perform_connection(int listen_socket);
|
||||
void generate_url(char *buffer, char *slug, size_t slug_length, struct client_data data);
|
||||
void save_to_file(char *buffer, char *slug, struct client_data data);
|
||||
|
||||
Reference in New Issue
Block a user