From 406d292107f66a06f8db695645345b13ae8acc8b Mon Sep 17 00:00:00 2001 From: iphydf Date: Fri, 9 Sep 2016 15:02:45 +0100 Subject: Minor cleanups: header reordering, adding {}. I hadn't done this for the "fun" code, yet. Also, we should include system headers after our own headers. "In general, a module should be implemented by one or more .cpp files. Each of these .cpp files should include the header that defines their interface first. This ensures that all of the dependences of the module header have been properly added to the module header itself, and are not implicit. System headers should be included after user headers for a translation unit." -- http://llvm.org/docs/CodingStandards.html#a-public-header-file-is-a-module --- other/bootstrap_daemon/src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'other/bootstrap_daemon/src') diff --git a/other/bootstrap_daemon/src/config.c b/other/bootstrap_daemon/src/config.c index a0c6045d..27d1364a 100644 --- a/other/bootstrap_daemon/src/config.c +++ b/other/bootstrap_daemon/src/config.c @@ -403,7 +403,7 @@ int bootstrap_from_config(const char *cfg_file_path, DHT *dht, int enable_ipv6) goto next; } - uint8_t *bs_public_key_bin = hex_string_to_bin((const char *)bs_public_key); + uint8_t *bs_public_key_bin = hex_string_to_bin(bs_public_key); const int address_resolved = DHT_bootstrap_from_address(dht, bs_address, enable_ipv6, htons(bs_port), bs_public_key_bin); free(bs_public_key_bin); -- cgit v1.2.3