summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1133dfb)
raw | patch | inline | side by side (parent: 1133dfb)
author | Maryam Tahhan <maryam.tahhan@intel.com> | |
Mon, 2 May 2016 18:53:00 +0000 (19:53 +0100) | ||
committer | Kim Jones <kim-marie.jones@intel.com> | |
Thu, 28 Jul 2016 12:18:13 +0000 (13:18 +0100) |
Fix compilation errors for dpdkstat.
Change-Id: I5f20219344f36a12d4a60f2bad6ce8228e3e992e
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
Change-Id: I5f20219344f36a12d4a60f2bad6ce8228e3e992e
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
src/dpdkstat.c | patch | blob | history |
diff --git a/src/dpdkstat.c b/src/dpdkstat.c
index 4dd4907aeba9cee94b7b918c7fe3959ad6b19a71..e37c4ba40823aed695ed555d1d8ab89796348f4c 100644 (file)
--- a/src/dpdkstat.c
+++ b/src/dpdkstat.c
static int dpdk_config(oconfig_item_t *ci)
{
- int i = 0, ret = 0;
+ int i = 0;
/* Initialize a POSIX SHared Memory (SHM) object. */
int err = dpdk_shm_init(sizeof(dpdk_config_t));
static int dpdk_init (void)
{
- int ret = 0;
int err = dpdk_shm_init(sizeof(dpdk_config_t));
if (err)
ERROR("dpdkstat: %s : error %d in shm_init()", __func__, err);
int pipe1_flags = fcntl(g_configuration->helper_pipes[0], F_GETFL, 0);
int p1err = fcntl(g_configuration->helper_pipes[1], F_SETFL, pipe1_flags | O_NONBLOCK);
int p2err = fcntl(g_configuration->helper_pipes[0], F_SETFL, pipe0_flags | O_NONBLOCK);
- if (pipe0_flags == -1 || pipe1_flags == -1 || p1err = -1 || p2err == -1) {
+ if (pipe0_flags == -1 || pipe1_flags == -1 || p1err == -1 || p2err == -1) {
ERROR("dpdkstat: error setting up pipes: %s\n", strerror(errno));
}
xstats += count; /* pointer arithmetic to jump to each stats struct */
for (int j = 0; j < len; j++) {
value_t dpdkstat_values[1];
- value_list_t dpdkstat_vl = VALUE_LIST_INIT
+ value_list_t dpdkstat_vl = VALUE_LIST_INIT;
dpdkstat_values[0].counter = xstats[j].value;
dpdkstat_vl.values = dpdkstat_values;