Merge branch 'master' of https://github.com/clicon/clixon
This commit is contained in:
commit
6f6ffa2319
1 changed files with 5 additions and 5 deletions
|
|
@ -196,6 +196,11 @@ clicon_option_default(clicon_hash_t *copt)
|
||||||
if (hash_add(copt, "CLICON_CLI_GENMODEL_COMPLETION", "0", strlen("0")+1) < 0)
|
if (hash_add(copt, "CLICON_CLI_GENMODEL_COMPLETION", "0", strlen("0")+1) < 0)
|
||||||
goto catch;
|
goto catch;
|
||||||
}
|
}
|
||||||
|
/* Default is to use line-scrolling */
|
||||||
|
if (!hash_lookup(copt, "CLICON_CLI_LINESCROLLING")){
|
||||||
|
if (hash_add(copt, "CLICON_CLI_LINESCROLLING", "1", strlen("1")+1) < 0)
|
||||||
|
goto catch;
|
||||||
|
}
|
||||||
retval = 0;
|
retval = 0;
|
||||||
catch:
|
catch:
|
||||||
return retval;
|
return retval;
|
||||||
|
|
@ -244,11 +249,6 @@ clicon_option_sanity(clicon_hash_t *copt)
|
||||||
clicon_err(OE_UNIX, 0, "CLICON_BACKEND_PIDFILE not defined in config file");
|
clicon_err(OE_UNIX, 0, "CLICON_BACKEND_PIDFILE not defined in config file");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
/* Default is to use line-scrolling */
|
|
||||||
if (!hash_lookup(copt, "CLICON_CLI_LINESCROLLING")){
|
|
||||||
if (hash_add(copt, "CLICON_CLI_LINESCROLLING", "1", strlen("1")+1) < 0)
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
retval = 0;
|
retval = 0;
|
||||||
done:
|
done:
|
||||||
return retval;
|
return retval;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue