From 00efe8abe8210b6d32361ccc47eda4bf8aaade6a Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Thu, 31 May 2018 15:13:11 +0200 Subject: [PATCH] dpdk: Ansify function prototype --- src/utils_dpdk.c | 2 +- src/utils_dpdk.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. */ -- 2.11.0