Merge pull request #746 from simonduq/contrib/nbr-error-msg

Native border router: clearer error messages
This commit is contained in:
George Oikonomou 2018-11-05 16:14:25 +00:00 committed by GitHub
commit 98f35fe091
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);