From 484e68e417d14e07514fcb3e08f90a328581d21b Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 2 Jul 2020 16:04:03 -0400 Subject: [PATCH] Remove commented cruft from src/sock.c --- src/sock.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/sock.c b/src/sock.c index 3886109..351d283 100644 --- a/src/sock.c +++ b/src/sock.c @@ -14,7 +14,6 @@ static int bind_pty(patty_ax25_sock *sock) { struct termios t; - int pty; if ((sock->fd = open("/dev/ptmx", O_RDWR)) < 0) { goto error_open; @@ -32,10 +31,6 @@ static int bind_pty(patty_ax25_sock *sock) { goto error_ptsname_r; } - /*if ((pty = open(sock->path, O_RDWR)) < 0) { - goto error_open_pty; - }*/ - if (tcgetattr(sock->fd, &t) < 0) { goto error_tcgetattr; } @@ -46,17 +41,12 @@ static int bind_pty(patty_ax25_sock *sock) { goto error_tcsetattr; } - //close(pty); - sock->opts |= PATTY_AX25_SOCK_PTY; return 0; error_tcsetattr: error_tcgetattr: - //close(pty); - -error_open_pty: error_ptsname_r: error_unlockpt: error_grantpt: