]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/client/client_auth.c
Use Windows-compatible linenoise
[dragonblocks_alpha.git] / src / client / client_auth.c
index afa3ebde092363335bfc91a29aa5febad2efab58..b955cd5c7711196ed4ea03a97075ca9a9d2af14e 100644 (file)
@@ -15,7 +15,7 @@ static void auth_loop()
        while (!interrupt.set) switch (client_auth.state) {
                case AUTH_INIT:
                        if (client_auth.name)
-                               linenoiseFree(client_auth.name);
+                               free(client_auth.name);
 
                        if (!(client_auth.name = linenoise("Enter name: ")))
                                return;
@@ -64,5 +64,5 @@ void client_auth_deinit()
 {
        pthread_cond_destroy(&client_auth.cv);
        pthread_mutex_destroy(&client_auth.mtx);
-       linenoiseFree(client_auth.name);
+       free(client_auth.name);
 }