diff --git a/include/patty/ax25/sock.h b/include/patty/ax25/sock.h index adf7794..046c153 100644 --- a/include/patty/ax25/sock.h +++ b/include/patty/ax25/sock.h @@ -40,7 +40,7 @@ typedef struct _patty_ax25_sock { int fd; char path[PATTY_AX25_SOCK_PATH_SIZE]; - patty_ax25_route *route; + patty_ax25_if *iface; patty_ax25_addr local, remote, diff --git a/src/server.c b/src/server.c index dd19050..cd90253 100644 --- a/src/server.c +++ b/src/server.c @@ -1001,8 +1001,7 @@ static int handle_sock(void *key, void *ctx) { patty_ax25_server *server = ctx; patty_ax25_sock *sock = value; - patty_ax25_route *route = sock->route; - patty_ax25_if *iface = route->iface; + patty_ax25_if *iface = sock->iface; int fd = (int)(key - NULL), fd_tnc = patty_kiss_tnc_fd(iface->tnc);