Native border router: clearer error messages

This commit is contained in:
Simon Duquennoy 2018-11-05 14:35:06 +01:00
parent 42436cc486
commit 5d8fda2af4
2 changed files with 2 additions and 2 deletions

View File

@ -562,7 +562,7 @@ slip_init(void)
slip_send(slipfd, SLIP_END);
inslip = fdopen(slipfd, "r");
if(inslip == NULL) {
err(1, "main: fdopen");
err(1, "slip_init: fdopen");
}
}
/*---------------------------------------------------------------------------*/

View File

@ -210,7 +210,7 @@ tun_init()
tunfd = tun_alloc(slip_config_tundev);
if(tunfd == -1) {
err(1, "main: open");
err(1, "tun_init: open");
}
select_set_callback(tunfd, &tun_select_callback);