summaryrefslogtreecommitdiff
path: root/lib/librte_timer
diff options
context:
space:
mode:
authorPawel Wodkowski <pawelx.wodkowski@intel.com>2015-02-25 13:41:23 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-03-04 11:19:37 +0100
commit5663c25dcceb744b980ff28df5687de7ec8cbbf8 (patch)
tree0046c0f2ba144fcf9f61de50a05d113ecae0b46b /lib/librte_timer
parent4b1b380213f3fc7029e8b9d936fc0a5d25009422 (diff)
downloaddpdk-5663c25dcceb744b980ff28df5687de7ec8cbbf8.zip
dpdk-5663c25dcceb744b980ff28df5687de7ec8cbbf8.tar.gz
dpdk-5663c25dcceb744b980ff28df5687de7ec8cbbf8.tar.xz
timer: fix callback declaration inconsistency
This patch remove inconsistency between declaration of type rte_timer_cb_t, field f in struct rte_timer and function __rte_timer_reset(). Although compiler treat both of them the same, the static analysis tool like complain about that. Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'lib/librte_timer')
-rw-r--r--lib/librte_timer/rte_timer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librte_timer/rte_timer.h b/lib/librte_timer/rte_timer.h
index 35b8719..77547c6 100644
--- a/lib/librte_timer/rte_timer.h
+++ b/lib/librte_timer/rte_timer.h
@@ -115,7 +115,7 @@ struct rte_timer;
/**
* Callback function type for timer expiry.
*/
-typedef void (rte_timer_cb_t)(struct rte_timer *, void *);
+typedef void (*rte_timer_cb_t)(struct rte_timer *, void *);
#define MAX_SKIPLIST_DEPTH 10
@@ -128,7 +128,7 @@ struct rte_timer
struct rte_timer *sl_next[MAX_SKIPLIST_DEPTH];
volatile union rte_timer_status status; /**< Status of timer. */
uint64_t period; /**< Period of timer (0 if not periodic). */
- rte_timer_cb_t *f; /**< Callback function. */
+ rte_timer_cb_t f; /**< Callback function. */
void *arg; /**< Argument to callback function. */
};