diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/client.c b/client/client.c index dbe2bf1..20279d8 100644 --- a/client/client.c +++ b/client/client.c @@ -171,7 +171,7 @@ static void change_client_frame(struct client *cl) } } -static int check_users_exti(enum client_states state, const char *buffer, +static int check_users_exit(enum client_states state, const char *buffer, int size) { if((state == first_player || state == confirmation_waiting) && @@ -187,7 +187,7 @@ static void send_data_to_server(struct client *cl, fd_set *readfds) if(FD_ISSET(0, readfds)) { /* 0 - stdin */ data_size = read(0, cl->buffer, max_buffer_size); - if(check_users_exti(cl->state, cl->buffer, data_size)) { + if(check_users_exit(cl->state, cl->buffer, data_size)) { close(cl->fd); clean_up_resources(cl); pgf_disconnect(); |