From df466dc02b83b74e268db74d11a6f75eb0e38cdc Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 21 Jun 2020 01:57:57 -0400 Subject: [PATCH] Slightly rethinking something --- include/patty/ax25/sock.h | 2 +- src/server.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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);