Auto-Merge pull request #2524 from maryamtahhan/fix_dpdkstats_compilation
authorcollectd bot <32910397+collectd-bot@users.noreply.github.com>
Tue, 7 Nov 2017 16:14:55 +0000 (17:14 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Nov 2017 16:14:55 +0000 (17:14 +0100)
Automatically merged due to "Automerge" label

src/dpdkstat.c

index b831311..134801b 100644 (file)
@@ -125,7 +125,6 @@ static int dpdk_stats_preinit(void) {
 
   int ret = dpdk_helper_init(g_shm_name, sizeof(dpdk_stats_ctx_t), &g_hc);
   if (ret != 0) {
-    char errbuf[ERR_BUF_SIZE];
     ERROR("%s: failed to initialize %s helper(error: %s)", DPDK_STATS_PLUGIN,
           g_shm_name, STRERRNO);
     return ret;
@@ -446,7 +445,6 @@ static int dpdk_stats_reinit_helper() {
   int ret;
   ret = dpdk_helper_init(g_shm_name, data_size, &g_hc);
   if (ret != 0) {
-    char errbuf[ERR_BUF_SIZE];
     ERROR("%s: failed to initialize %s helper(error: %s)", DPDK_STATS_PLUGIN,
           g_shm_name, STRERRNO);
     return ret;