aboutsummaryrefslogtreecommitdiff
path: root/term/users.c
diff options
context:
space:
mode:
Diffstat (limited to 'term/users.c')
-rw-r--r--term/users.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term/users.c b/term/users.c
index 828b1a3d..9f2a3eff 100644
--- a/term/users.c
+++ b/term/users.c
@@ -2208,9 +2208,9 @@ S_term_get_peername (io_t arg,
peer = (cred->pi.class == tty_class) ? ptyctl : termctl;
- if (bottom != ptyio_bottom || !peer->hook)
+ if (bottom != &ptyio_bottom || !peer->hook)
{
- port_port_deref (cred);
+ ports_port_deref (cred);
return ENOENT;
}