diff --git a/apps/cli/cli_plugin.c b/apps/cli/cli_plugin.c index f2da6b78..dd399950 100644 --- a/apps/cli/cli_plugin.c +++ b/apps/cli/cli_plugin.c @@ -854,7 +854,6 @@ prompt_fmt (char *prompt, size_t plen, char *fmt, ...) } /* Start with empty string */ - cprintf(cb, ""); while(*s) { if (*s == '%' && *++s) { switch(*s) { diff --git a/apps/netconf/netconf_hello.c b/apps/netconf/netconf_hello.c index 68b42805..833a1c5c 100644 --- a/apps/netconf/netconf_hello.c +++ b/apps/netconf/netconf_hello.c @@ -122,7 +122,7 @@ netconf_create_hello(cbuf *xf, /* msg buffer */ cprintf(xf, "urn:ietf:params:netconf:capability:notification:1.0\n"); cprintf(xf, "urn:ietf:params:netconf:capability:startup:1.0\n"); cprintf(xf, ""); - cprintf(xf, "%lu", 42+session_id); + cprintf(xf, "%lu", (long unsigned int)42+session_id); cprintf(xf, ""); add_postamble(xf); return retval; diff --git a/lib/src/clixon_proto_client.c b/lib/src/clixon_proto_client.c index 05991b74..9ba18073 100644 --- a/lib/src/clixon_proto_client.c +++ b/lib/src/clixon_proto_client.c @@ -243,7 +243,7 @@ clicon_rpc_generate_error(char *format, * @retval -1 Error, fatal or xml * @code * cxobj *xt = NULL; - * if (clicon_rpc_get_config(h, "running", "/", &xt) < 0) + * if (clicon_rpc_get_config(h, "running", "/", username, &xt) < 0) * err; * if ((xerr = xpath_first(xt, "/rpc-error")) != NULL){ * clicon_rpc_generate_error("", xerr);