warnings in travis
This commit is contained in:
parent
7bcd6aed08
commit
7350ec1624
5 changed files with 11 additions and 9 deletions
|
|
@ -622,7 +622,7 @@ stream_notify_xml(clicon_handle h,
|
|||
cxobj *xev = NULL;
|
||||
cxobj *xml2; /* copy */
|
||||
yang_stmt *yspec = NULL;
|
||||
char *str = NULL;
|
||||
char *str = NULL; /* XXX: never set */
|
||||
cbuf *cb = NULL;
|
||||
char timestr[28];
|
||||
struct timeval tv;
|
||||
|
|
@ -644,7 +644,7 @@ stream_notify_xml(clicon_handle h,
|
|||
clicon_err(OE_UNIX, errno, "time2str");
|
||||
goto done;
|
||||
}
|
||||
cprintf(cb, "<notification xmlns=\"urn:ietf:params:xml:ns:netconf:notification:1.0\"><eventTime>%s</eventTime>%s</notification>", timestr, str);
|
||||
cprintf(cb, "<notification xmlns=\"urn:ietf:params:xml:ns:netconf:notification:1.0\"><eventTime>%s</eventTime>NULL</notification>", timestr); /* XXX str is always NULL */
|
||||
if (xml_parse_string(cbuf_get(cb), yspec, &xev) < 0)
|
||||
goto done;
|
||||
if (xml_rootchild(xev, 0, &xev) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue