summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon/src
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-09 15:02:45 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-09 19:30:50 +0100
commit406d292107f66a06f8db695645345b13ae8acc8b (patch)
tree6ef7cf318f973b5026637815b7f56311be88e376 /other/bootstrap_daemon/src
parent769db9dd9a73208d32c22c52c8eef7446e026f81 (diff)
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
Diffstat (limited to 'other/bootstrap_daemon/src')
-rw-r--r--other/bootstrap_daemon/src/config.c2
1 files changed, 1 insertions, 1 deletions
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)
403 goto next; 403 goto next;
404 } 404 }
405 405
406 uint8_t *bs_public_key_bin = hex_string_to_bin((const char *)bs_public_key); 406 uint8_t *bs_public_key_bin = hex_string_to_bin(bs_public_key);
407 const int address_resolved = DHT_bootstrap_from_address(dht, bs_address, enable_ipv6, htons(bs_port), 407 const int address_resolved = DHT_bootstrap_from_address(dht, bs_address, enable_ipv6, htons(bs_port),
408 bs_public_key_bin); 408 bs_public_key_bin);
409 free(bs_public_key_bin); 409 free(bs_public_key_bin);