Added nsc parameter to xmldb_get()

This commit is contained in:
Olof hagsand 2019-12-02 20:55:28 +01:00
parent 08b128f4d7
commit 46552066d1
5 changed files with 12 additions and 8 deletions

View file

@ -198,7 +198,7 @@ main(int argc, char **argv)
xpath = argv[1];
else
xpath = "/";
if (xmldb_get(h, db, xpath, &xt) < 0)
if (xmldb_get(h, db, NULL, xpath, &xt) < 0)
goto done;
clicon_xml2file(stdout, xt, 0, 0);
fprintf(stdout, "\n");
@ -217,7 +217,7 @@ main(int argc, char **argv)
else
xpath = "/";
for (i=0;i<nr;i++){
if (xmldb_get(h, db, xpath, &xt) < 0)
if (xmldb_get(h, db, NULL, xpath, &xt) < 0)
goto done;
if (xt == NULL){
clicon_err(OE_DB, 0, "xt is NULL");