Native border router: clearer error messages
This commit is contained in:
parent
42436cc486
commit
5d8fda2af4
@ -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");
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user