diff mbox series

[08/17] channel_curl: drop reference to hawkbit

Message ID 1511176210-28928-8-git-send-email-sbabic@denx.de
State Accepted
Headers show
Series [01/17] parser: added function to get net child in tree | expand

Commit Message

Stefano Babic Nov. 20, 2017, 11:10 a.m. UTC
Function can be used outside hawkbit - rename channel_hawkbit_init()
to channel_curl_init().

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 corelib/channel_curl.c     | 4 ++--
 suricatta/server_hawkbit.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/corelib/channel_curl.c b/corelib/channel_curl.c
index 6c16592..073bf16 100644
--- a/corelib/channel_curl.c
+++ b/corelib/channel_curl.c
@@ -76,7 +76,7 @@  channel_op_res_t channel_set_options(channel_t *this, channel_data_t *channel_da
 static void channel_log_effective_url(channel_t *this);
 
 /* Prototypes for "public" functions */
-channel_op_res_t channel_hawkbit_init(void);
+channel_op_res_t channel_curl_init(void);
 channel_op_res_t channel_close(channel_t *this);
 channel_op_res_t channel_open(channel_t *this, void *cfg);
 channel_op_res_t channel_get(channel_t *this, void *data);
@@ -85,7 +85,7 @@  channel_op_res_t channel_put(channel_t *this, void *data);
 channel_t *channel_new(void);
 
 
-channel_op_res_t channel_hawkbit_init(void)
+channel_op_res_t channel_curl_init(void)
 {
 #ifdef CONFIG_SURICATTA_SSL
 #define CURL_FLAGS CURL_GLOBAL_SSL
diff --git a/suricatta/server_hawkbit.c b/suricatta/server_hawkbit.c
index 186e9f0..100f0a0 100644
--- a/suricatta/server_hawkbit.c
+++ b/suricatta/server_hawkbit.c
@@ -106,7 +106,7 @@  static hawkbit_enums_t hawkbit_enums[] = {
 #define ALL_MANDATORY_SET	(TENANT_BIT | ID_BIT | URL_BIT)
 
 
-extern channel_op_res_t channel_hawkbit_init(void);
+extern channel_op_res_t channel_curl_init(void);
 /* Prototypes for "internal" functions */
 /* Note that they're not `static` so that they're callable from unit tests. */
 json_object *json_get_key(json_object *json_root, const char *key);
@@ -1718,7 +1718,7 @@  server_op_res_t server_start(char *fname, int argc, char *argv[])
 		return SERVER_EINIT;
 	}
 
-	if (channel_hawkbit_init() != CHANNEL_OK)
+	if (channel_curl_init() != CHANNEL_OK)
 		return SERVER_EINIT;
 
 	/*