* Added CLICON_CLI_LINES_DEFAULT for setting window row size of raw terminals
  * Added  enum HIDE to CLICON_CLI_GENMODEL for auto-cli
This commit is contained in:
Olof hagsand 2020-06-18 11:28:47 +02:00
parent fade9dcfd5
commit ee29452d24
11 changed files with 37 additions and 767 deletions

View file

@ -1429,7 +1429,7 @@ clixon_json_parse_file(int fd,
}
break;
}
if (len>=jsonbuflen-1){ /* Space: one for the null character */
if (len >= jsonbuflen-1){ /* Space: one for the null character */
oldjsonbuflen = jsonbuflen;
jsonbuflen *= 2;
if ((jsonbuf = realloc(jsonbuf, jsonbuflen)) == NULL){

View file

@ -443,7 +443,7 @@ clicon_options_main(clicon_handle h)
* @param[in] h clicon_handle
* @param[in] name option name
* @retval !=0 option exists
* @retval 0 option does not exists
* @retval 0 option does not exist
*/
int
clicon_option_exists(clicon_handle h,
@ -496,10 +496,10 @@ clicon_option_str_set(clicon_handle h,
*
* @param[in] h clicon handle
* @param[in] name name of option
* @retval int An integer as aresult of atoi
* @retval int An integer as a result of atoi
* @retval -1 If option does not exist
* @code
* if (clicon_option_exists(h, "X")
* if (clicon_option_exists(h, "X"))
* return clicon_option_int(h, "X");
* else
* return 0;

View file

@ -648,7 +648,7 @@ clixon_xml_parse_file(int fd,
failed++;
break;
}
if (len>=xmlbuflen-1){ /* Space: one for the null character */
if (len >= xmlbuflen-1){ /* Space: one for the null character */
oldxmlbuflen = xmlbuflen;
xmlbuflen *= 2;
if ((xmlbuf = realloc(xmlbuf, xmlbuflen)) == NULL){