display_date() is only used one time, doesn't make sense to make it a function
This commit is contained in:
7
fiche.c
7
fiche.c
@@ -147,11 +147,6 @@ void perform_connection(int listen_socket)
|
||||
pthread_detach(thread_id);
|
||||
}
|
||||
|
||||
void display_date()
|
||||
{
|
||||
info("%s\n", get_date());
|
||||
}
|
||||
|
||||
char *get_date()
|
||||
{
|
||||
time_t rawtime;
|
||||
@@ -216,7 +211,7 @@ void display_info(struct client_data data, char *slug, char *message)
|
||||
if (slug == NULL)
|
||||
info("%s\n", message);
|
||||
else info("Saved to: %s\n", slug);
|
||||
display_date();
|
||||
info("%s\n", get_date());
|
||||
info("Client: %s (%s)\n", data.ip_address, data.hostname);
|
||||
info("====================================\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user