From f627a26a7b1c3619ba66f84b87092ff8ba7a95b6 Mon Sep 17 00:00:00 2001 From: iphydf Date: Tue, 17 Jul 2018 01:18:04 +0000 Subject: Run Clang global static analysis on Travis. This uses a single .cc file containing almost all the code in the repository to perform whole program analysis. --- other/bootstrap_daemon/src/config.c | 4 ++-- other/bootstrap_daemon/src/tox-bootstrapd.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'other/bootstrap_daemon') diff --git a/other/bootstrap_daemon/src/config.c b/other/bootstrap_daemon/src/config.c index 9fde33b2..0a7f566b 100644 --- a/other/bootstrap_daemon/src/config.c +++ b/other/bootstrap_daemon/src/config.c @@ -303,7 +303,7 @@ int get_general_config(const char *cfg_file_path, char **pid_file_path, char **k * @return binary on success, * NULL on failure. */ -static uint8_t *hex_string_to_bin(const char *hex_string) +static uint8_t *bootstrap_hex_string_to_bin(const char *hex_string) { if (strlen(hex_string) % 2 != 0) { return nullptr; @@ -407,7 +407,7 @@ int bootstrap_from_config(const char *cfg_file_path, DHT *dht, int enable_ipv6) goto next; } - bs_public_key_bin = hex_string_to_bin(bs_public_key); + bs_public_key_bin = bootstrap_hex_string_to_bin(bs_public_key); address_resolved = dht_bootstrap_from_address(dht, bs_address, enable_ipv6, net_htons(bs_port), bs_public_key_bin); free(bs_public_key_bin); diff --git a/other/bootstrap_daemon/src/tox-bootstrapd.c b/other/bootstrap_daemon/src/tox-bootstrapd.c index fd05f8a2..b17fc2ba 100644 --- a/other/bootstrap_daemon/src/tox-bootstrapd.c +++ b/other/bootstrap_daemon/src/tox-bootstrapd.c @@ -22,7 +22,9 @@ * You should have received a copy of the GNU General Public License * along with Tox. If not, see . */ +#ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 600 +#endif // system provided #include -- cgit v1.2.3