Skip to content

Commit

Permalink
Strings improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
HorlogeSkynet committed May 30, 2017
1 parent 9b7a338 commit 934658c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/commands/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void* server_communication(void *param)

if(result <= 0 || !strcmp(buffer, DISCONNECT))
{
printf("\n\033[35m[Server] is demanding this client disconnection. Stopping now.\033[0m");
printf("\n\n\033[35m[Server] is demanding this client disconnection. Stopping now.\033[0m");
pthread_cancel(*(threads->cthread));
pthread_exit(NULL);
}
Expand Down
2 changes: 1 addition & 1 deletion server/commands/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void* on_connection(void *data)

if(close(client.sock) == -1)
{
printf("\033[35m[WIFSS] Error while closing the socket of client %d: %s.\033[0m\n\n", client.id, strerror(errno));
printf("\033[35m[WIFSS] Warning: couldn\'t close the [Client %d]\'s socket (already closed ?): %s.\033[0m\n\n", client.id, strerror(errno));
}

command_cursor();
Expand Down

0 comments on commit 934658c

Please sign in to comment.