God, this might be workable at some point
This commit is contained in:
parent
17be963b48
commit
696ce80b5b
1 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue