back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-08-19 15:57:34 +0300
committerscratko <m@scratko.xyz>2024-08-19 16:46:35 +0300
commit4b6c15f780d59895f067383a5041edcfe86f504e (patch)
tree83663bc94e5967b30209b12a76db914b4ed8117f /client
parentb4b784928cbec4a93c71f3ca1e37a14397929edb (diff)
downloaddurak-4b6c15f780d59895f067383a5041edcfe86f504e.tar.gz
durak-4b6c15f780d59895f067383a5041edcfe86f504e.tar.bz2
durak-4b6c15f780d59895f067383a5041edcfe86f504e.zip
Added readme
Diffstat (limited to 'client')
-rw-r--r--client/client.c4
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();