Update termo
This commit is contained in:
parent
ef257d11fb
commit
a47ed4fe84
|
@ -11,6 +11,7 @@ Build dependencies: CMake, pkg-config, ncursesw, libev, termo (included)::
|
||||||
$ git submodule init
|
$ git submodule init
|
||||||
$ git submodule update
|
$ git submodule update
|
||||||
$ mkdir build
|
$ mkdir build
|
||||||
|
$ cd build
|
||||||
$ cmake .. -DCMAKE_BUILD_TYPE=Debug
|
$ cmake .. -DCMAKE_BUILD_TYPE=Debug
|
||||||
$ make
|
$ make
|
||||||
|
|
||||||
|
|
|
@ -1481,7 +1481,7 @@ initialize_server (app_context_t *app, struct addrinfo *address)
|
||||||
int sock_fd = socket (address->ai_family,
|
int sock_fd = socket (address->ai_family,
|
||||||
address->ai_socktype, address->ai_protocol);
|
address->ai_socktype, address->ai_protocol);
|
||||||
if (sock_fd == -1)
|
if (sock_fd == -1)
|
||||||
goto fail;
|
goto fail_socket;
|
||||||
|
|
||||||
if (bind (sock_fd, address->ai_addr, address->ai_addrlen)
|
if (bind (sock_fd, address->ai_addr, address->ai_addrlen)
|
||||||
|| listen (sock_fd, 10))
|
|| listen (sock_fd, 10))
|
||||||
|
@ -1498,6 +1498,8 @@ initialize_server (app_context_t *app, struct addrinfo *address)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
xclose (sock_fd);
|
||||||
|
fail_socket:
|
||||||
fprintf (stderr, "%s: %s: %s\n",
|
fprintf (stderr, "%s: %s: %s\n",
|
||||||
"error", "initialization failed", strerror (errno));
|
"error", "initialization failed", strerror (errno));
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
|
@ -1541,7 +1543,6 @@ main (int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
app.tk = tk;
|
app.tk = tk;
|
||||||
termo_set_mouse_proto (tk, termo_guess_mouse_proto (tk));
|
|
||||||
termo_set_mouse_tracking_mode (tk, TERMO_MOUSE_TRACKING_DRAG);
|
termo_set_mouse_tracking_mode (tk, TERMO_MOUSE_TRACKING_DRAG);
|
||||||
|
|
||||||
// Set up curses for our drawing needs
|
// Set up curses for our drawing needs
|
||||||
|
|
2
termo
2
termo
|
@ -1 +1 @@
|
||||||
Subproject commit f1f9a00cda728eabd833e81e14cc7606bb34986a
|
Subproject commit 788b2524077c9529a61f2f8db41a33d09b79f962
|
Loading…
Reference in New Issue