curl: Rename function to have same prefix used in curl.c

All other exported functions in curl.c starts with swupd_curl
This commit is contained in:
Otavio Pontes
2018-07-13 16:15:41 -07:00
committed by Matthew Johnson
parent cd406409f8
commit 3e8743a34a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ static size_t filesize_from_header_cb(void UNUSED_PARAM *func, size_t size, size
return (size_t)(size * nmemb);
}
double swupd_query_url_content_size(char *url)
double swupd_curl_query_content_size(char *url)
{
CURLcode curl_ret;
double content_size;
+1 -1
View File
@@ -756,7 +756,7 @@ static double query_total_download_size(struct list *list)
string_or_die(&url, "%s/%i/Manifest.%s.tar", content_url,
file->last_change, file->filename);
ret = swupd_query_url_content_size(url);
ret = swupd_curl_query_content_size(url);
free_string(&url);
if (ret != -1) {
/* Convert file size from bytes to MB */
+1 -1
View File
@@ -295,7 +295,7 @@ extern int update_device_latest_version(int version);
extern int swupd_curl_init(void);
extern void swupd_curl_deinit(void);
extern double swupd_query_url_content_size(char *url);
extern double swupd_curl_query_content_size(char *url);
extern CURLcode swupd_download_file_start(struct file *file);
extern CURLcode swupd_download_file_complete(CURLcode curl_ret, struct file *file);
extern int swupd_curl_get_file(const char *url, char *filename);