From 0f37a37775567e21e73776825141a06c8f4fda45 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 14 Jun 2020 14:08:02 -0400 Subject: [PATCH] Better prototypes; better config --- examples/patty.conf | 2 ++ include/patty/ax25/mux.h | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/examples/patty.conf b/examples/patty.conf index 043877d..eacae20 100644 --- a/examples/patty.conf +++ b/examples/patty.conf @@ -1,4 +1,6 @@ sock /var/run/patty.sock pid /var/run/patty.pid if tnc0 ax25 KZ3ROX kiss /dev/ttyUSB0 baud 9600 +route default if tnc0 +route station GB9BLM path KX5UXQ WX3RKR listen tnc0 ssid 0 exec /usr/bin/login -l -h @peer diff --git a/include/patty/ax25/mux.h b/include/patty/ax25/mux.h index ffadd62..a2a92ca 100644 --- a/include/patty/ax25/mux.h +++ b/include/patty/ax25/mux.h @@ -20,14 +20,14 @@ enum patty_ax25_mux_request_type { PATTY_AX25_MUX_RECVFROM }; -int patty_ax25_mux_send(int fd, - enum patty_ax25_mux_request_type type, - void *data, - size_t len); +ssize_t patty_ax25_mux_send(int fd, + enum patty_ax25_mux_request_type type, + void *data, + size_t len); -int patty_ax25_mux_recv(int fd, - enum patty_ax25_mux_response_type type, - void *data, - size_t len); +ssize_t patty_ax25_mux_recv(int fd, + enum patty_ax25_mux_response_type *type, + void *data, + size_t len); #endif /* _PATTY_AX25_MUX_H */