clang warnings
This commit is contained in:
parent
7fb452f96e
commit
a87e9cb246
9 changed files with 11 additions and 11 deletions
|
|
@ -767,7 +767,7 @@ main(int argc,
|
|||
goto done;
|
||||
/* Startup mode needs to be defined, */
|
||||
startup_mode = clicon_startup_mode(h);
|
||||
if (startup_mode == -1){
|
||||
if ((int)startup_mode == -1){
|
||||
clicon_log(LOG_ERR, "Startup mode undefined. Specify option CLICON_STARTUP_MODE or specify -s option to clicon_backend.");
|
||||
goto done;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -454,7 +454,7 @@ cli_show_config1(clicon_handle h,
|
|||
db = cv_string_get(cvec_i(argv, 0));
|
||||
/* Second argv argument: Format */
|
||||
formatstr = cv_string_get(cvec_i(argv, 1));
|
||||
if ((format = format_str2int(formatstr)) < 0){
|
||||
if ((int)(format = format_str2int(formatstr)) < 0){
|
||||
clicon_err(OE_PLUGIN, 0, "Not valid format: %s", formatstr);
|
||||
goto done;
|
||||
}
|
||||
|
|
@ -705,7 +705,7 @@ cli_show_auto1(clicon_handle h,
|
|||
db = cv_string_get(cvec_i(argv, 1));
|
||||
/* Third format: output format */
|
||||
formatstr = cv_string_get(cvec_i(argv, 2));
|
||||
if ((format = format_str2int(formatstr)) < 0){
|
||||
if ((int)(format = format_str2int(formatstr)) < 0){
|
||||
clicon_err(OE_PLUGIN, 0, "Not valid format: %s", formatstr);
|
||||
goto done;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ restconf_content_type(FCGX_Request *r)
|
|||
|
||||
if ((str = FCGX_GetParam("HTTP_CONTENT_TYPE", r->envp)) == NULL)
|
||||
return -1;
|
||||
if ((m = restconf_media_str2int(str)) == -1)
|
||||
if ((int)(m = restconf_media_str2int(str)) == -1)
|
||||
return -1;
|
||||
return m;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -355,7 +355,7 @@ api_restconf(clicon_handle h,
|
|||
// retval = restconf_unsupported_media(r);
|
||||
// goto done;
|
||||
}
|
||||
else if ((media_out = restconf_media_str2int(media_str)) == -1){
|
||||
else if ((int)(media_out = restconf_media_str2int(media_str)) == -1){
|
||||
if (strcmp(media_str, "*/*") == 0) /* catch-all */
|
||||
media_out = YANG_DATA_JSON;
|
||||
else{
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ api_data_get2(clicon_handle h,
|
|||
/* Check for content attribute */
|
||||
if ((attr = cvec_find_str(qvec, "content")) != NULL){
|
||||
clicon_debug(1, "%s content=%s", __FUNCTION__, attr);
|
||||
if ((content = netconf_content_str2int(attr)) == -1){
|
||||
if ((int)(content = netconf_content_str2int(attr)) == -1){
|
||||
if (netconf_bad_attribute_xml(&xerr, "application",
|
||||
"<bad-attribute>content</bad-attribute>", "Unrecognized value of content attribute") < 0)
|
||||
goto done;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue