truncate helptext

This commit is contained in:
Olof hagsand 2016-03-09 21:01:57 +01:00
parent 4b19798b58
commit 6d8acdea9f
9 changed files with 102 additions and 44 deletions

View file

@ -113,23 +113,23 @@ clicon_rpc_msg(clicon_handle h,
/*! Commit changes send a commit request to backend daemon
* @param[in] h CLICON handle
* @param[in] running_db Name of database
* @param[in] db Name of database
* @param[in] from name of 'from' database (eg "candidate")
* @param[in] db name of 'to' database (eg "running")
* @param[in] snapshot Make a snapshot copy of db state
* @param[in] startup Make a copy to startup.
* @retval 0 Copy current->candidate
* @retval 0 Copy current->candidate
*/
int
clicon_rpc_commit(clicon_handle h,
char *running_db,
char *db,
char *from,
char *to,
int snapshot,
int startup)
{
int retval = -1;
struct clicon_msg *msg;
if ((msg=clicon_msg_commit_encode(db, running_db, snapshot, startup,
if ((msg=clicon_msg_commit_encode(from, to, snapshot, startup,
__FUNCTION__)) == NULL)
goto done;
if (clicon_rpc_msg(h, msg, NULL, NULL, NULL, __FUNCTION__) < 0)