Fix svace issues
[platform/framework/web/download-provider.git] / provider-interface / download-provider-interface.c
index dfb15e8..8179610 100755 (executable)
@@ -1648,7 +1648,7 @@ int dp_interface_get_http_header_field_list(const int id, char ***fields,
                                                errorcode = DP_ERROR_NO_DATA;
                                                *length = 0;
                                        } else {
-                                               int i = 0;
+                                               size_t i = 0;
                                                char **recv_strings = NULL;
 
                                                if (array_size > DOWNLOAD_HTTP_HEADER_FIELDS_MAX)
@@ -1694,7 +1694,7 @@ int dp_interface_get_http_header_field_list(const int id, char ***fields,
                                                        if (errorcode != DP_ERROR_IO_ERROR)
                                                                __bp_disconnect(__FUNCTION__); // clear IPC, can not expect the size of futher packets
                                                }
-                                               *length = i;
+                                               *length = (int)i;
                                        }
                                }
                        } else {