mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-16 16:41:35 +02:00
Merge branch 'obsd-master'
This commit is contained in:
@ -130,7 +130,7 @@ server_client_create(int fd)
|
||||
evtimer_set(&c->repeat_timer, server_client_repeat_timer, c);
|
||||
|
||||
TAILQ_INSERT_TAIL(&clients, c, entry);
|
||||
log_debug("new client %d", fd);
|
||||
log_debug("new client %p", c);
|
||||
}
|
||||
|
||||
/* Open client terminal if needed. */
|
||||
@ -171,7 +171,7 @@ server_client_lost(struct client *c)
|
||||
c->stdin_callback(c, 1, c->stdin_callback_data);
|
||||
|
||||
TAILQ_REMOVE(&clients, c, entry);
|
||||
log_debug("lost client %d", c->ibuf.fd);
|
||||
log_debug("lost client %p", c);
|
||||
|
||||
/*
|
||||
* If CLIENT_TERMINAL hasn't been set, then tty_init hasn't been called
|
||||
@ -237,7 +237,7 @@ server_client_lost(struct client *c)
|
||||
void
|
||||
server_client_unref(struct client *c)
|
||||
{
|
||||
log_debug("unref client %d (%d references)", c->ibuf.fd, c->references);
|
||||
log_debug("unref client %p (%d references)", c, c->references);
|
||||
|
||||
c->references--;
|
||||
if (c->references == 0)
|
||||
@ -250,7 +250,7 @@ server_client_free(unused int fd, unused short events, void *arg)
|
||||
{
|
||||
struct client *c = arg;
|
||||
|
||||
log_debug("free client %d (%d references)", c->ibuf.fd, c->references);
|
||||
log_debug("free client %p (%d references)", c, c->references);
|
||||
|
||||
if (c->references == 0)
|
||||
free(c);
|
||||
@ -1007,7 +1007,7 @@ server_client_msg_dispatch(struct client *c)
|
||||
continue;
|
||||
}
|
||||
|
||||
log_debug("got %u from client %d", imsg.hdr.type, c->ibuf.fd);
|
||||
log_debug("got %u from client %p", imsg.hdr.type, c);
|
||||
switch (imsg.hdr.type) {
|
||||
case MSG_IDENTIFY_FLAGS:
|
||||
case MSG_IDENTIFY_TERM:
|
||||
|
Reference in New Issue
Block a user