diff mbox series

[2/6] cosmetic: rename downloader

Message ID 20230817111712.235063-2-stefano.babic@swupdate.org
State Accepted
Delegated to: Stefano Babic
Headers show
Series None | expand

Commit Message

Stefano Babic Aug. 17, 2023, 11:17 a.m. UTC
start_download() is better called start_downloader:_server() in the case
the download is not immediately started but will be triggered later.

This is preparation to add IPC to the downloader to transfer URL via
IPC.

Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
---
 core/swupdate.c              | 2 +-
 corelib/downloader.c         | 2 +-
 include/download_interface.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/core/swupdate.c b/core/swupdate.c
index 58e75418..6b536b83 100644
--- a/core/swupdate.c
+++ b/core/swupdate.c
@@ -889,7 +889,7 @@  int main(int argc, char **argv)
 		read_settings_user_id(&handle, "download", &uid, &gid);
 		start_subprocess(SOURCE_DOWNLOADER, "download", uid, gid,
 				 cfgfname, dwlac,
-				 dwlav, start_download);
+				 dwlav, start_download_server);
 		freeargs(dwlav);
 	}
 #endif
diff --git a/corelib/downloader.c b/corelib/downloader.c
index fcb1bb56..a301c224 100644
--- a/corelib/downloader.c
+++ b/corelib/downloader.c
@@ -117,7 +117,7 @@  static channel_data_t channel_options = {
 	.headers = NULL,
 };
 
-int start_download(const char *fname, int argc, char *argv[])
+int start_download_server(const char *fname, int argc, char *argv[])
 {
 	if (fname) {
 		swupdate_cfg_handle handle;
diff --git a/include/download_interface.h b/include/download_interface.h
index 09fed453..8e031306 100644
--- a/include/download_interface.h
+++ b/include/download_interface.h
@@ -12,7 +12,7 @@ 
 /*
  * This is used by swupdate to start the Downloader Process
  */
-int start_download(const char *cfgfname, int argc, char *argv[]);
+int start_download_server(const char *cfgfname, int argc, char *argv[]);
 
 void download_print_help(void);