Slightly rethinking something

This commit is contained in:
XANTRONIX Development 2020-06-21 01:57:57 -04:00 committed by XANTRONIX Industrial
parent eb45bd192d
commit df466dc02b
2 changed files with 2 additions and 3 deletions

View file

@ -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,

View file

@ -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);