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:
parent
7590395fe3
commit
e282493095
4 changed files with 5 additions and 3 deletions
|
|
@ -69,6 +69,7 @@
|
|||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <netinet/in.h>
|
||||
#include <libgen.h>
|
||||
|
||||
/* cligen */
|
||||
#include <cligen/cligen.h>
|
||||
|
|
@ -2449,7 +2450,7 @@ yang_spec_parse_module(clicon_handle h,
|
|||
*/
|
||||
int
|
||||
yang_spec_parse_file(clicon_handle h,
|
||||
const char *filename,
|
||||
char *filename,
|
||||
yang_spec *yspec)
|
||||
{
|
||||
int retval = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue