God, this might be workable at some point

This commit is contained in:
XANTRONIX Development 2020-06-25 00:18:40 -04:00 committed by XANTRONIX Industrial
parent 17be963b48
commit 696ce80b5b

View file

@ -3,6 +3,7 @@
#include <string.h>
#include <stdarg.h>
#include <sys/select.h>
#include <errno.h>
#include <patty/ax25.h>
@ -41,15 +42,19 @@ int main(int argc, char **argv) {
goto error_server_add_if;
}
patty_ax25_server_run(server);
if (patty_ax25_server_run(server) < 0) {
fprintf(stderr, "%s: %s: %s: %s\n",
argv[0], argv[1], "patty_ax25_server_run()", strerror(errno));
goto error_server_run;
}
patty_ax25_server_destroy(server);
return 0;
error_server_run:
error_server_add_if:
patty_ax25_if_destroy(iface);
error_if_new:
patty_ax25_server_destroy(server);