FreeBSD compatibility & pedanticism patches

use ETIMEDOUT rather than ETIME - this seems more the intent of its
usage here and it compiles under FreeBSD & Linux.
in yang_spec_parse_file() the function basename() is not declared,
the declaration is in libgen.h, so include it. also basename() takes
char * for its argument not const char *, yang_spec_parse_file()
has to be changed to char *filename to compile w/o warnings
This commit is contained in:
Dave Cornejo 2019-02-22 19:57:42 -10:00
parent 7590395fe3
commit e282493095
4 changed files with 5 additions and 3 deletions

View file

@ -312,7 +312,7 @@ static int
timeout_fn(int s,
void *arg)
{
clicon_err(OE_EVENTS, ETIME, "User request timeout");
clicon_err(OE_EVENTS, ETIMEDOUT, "User request timeout");
return -1;
}