From: Ruben Kerkhof Date: Thu, 31 May 2018 13:13:11 +0000 (+0200) Subject: dpdk: Ansify function prototype X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=00efe8abe8210b6d32361ccc47eda4bf8aaade6a;p=collectd.git dpdk: Ansify function prototype --- diff --git a/src/utils_dpdk.c b/src/utils_dpdk.c index adc55306..1d4668f3 100644 --- a/src/utils_dpdk.c +++ b/src/utils_dpdk.c @@ -852,7 +852,7 @@ uint128_t str_to_uint128(const char *str, int len) { return lcore_mask; } -uint8_t dpdk_helper_eth_dev_count() { +uint8_t dpdk_helper_eth_dev_count(void) { uint8_t ports = rte_eth_dev_count(); if (ports == 0) { ERROR( diff --git a/src/utils_dpdk.h b/src/utils_dpdk.h index f3b7e7f7..d4551d86 100644 --- a/src/utils_dpdk.h +++ b/src/utils_dpdk.h @@ -74,7 +74,7 @@ int dpdk_helper_command(dpdk_helper_ctx_t *phc, enum DPDK_CMD cmd, int *result, cdtime_t cmd_wait_time); void *dpdk_helper_priv_get(dpdk_helper_ctx_t *phc); int dpdk_helper_data_size_get(dpdk_helper_ctx_t *phc); -uint8_t dpdk_helper_eth_dev_count(); +uint8_t dpdk_helper_eth_dev_count(void); /* forward declaration of handler function that is called by helper from * child process. not implemented in helper. must be provided by client. */