summaryrefslogtreecommitdiff
path: root/lib/librte_kvargs
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2014-01-28 17:06:41 +0100
committerDavid Marchand <david.marchand@6wind.com>2014-02-26 11:01:14 +0100
commitd8e2337ac4e32132e5a26dc351604447b341366d (patch)
tree53fac109495db6c823a1259a825ee2875674528c /lib/librte_kvargs
parentd24839b318676504163dd3b4e9249ff1fe61b54d (diff)
downloaddpdk-d8e2337ac4e32132e5a26dc351604447b341366d.zip
dpdk-d8e2337ac4e32132e5a26dc351604447b341366d.tar.gz
dpdk-d8e2337ac4e32132e5a26dc351604447b341366d.tar.xz
kvargs: add const attribute in handler parameters
The "value" argument is read-only and should be const. Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'lib/librte_kvargs')
-rw-r--r--lib/librte_kvargs/rte_kvargs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_kvargs/rte_kvargs.h b/lib/librte_kvargs/rte_kvargs.h
index d09dab8..98b8a7c 100644
--- a/lib/librte_kvargs/rte_kvargs.h
+++ b/lib/librte_kvargs/rte_kvargs.h
@@ -64,7 +64,7 @@ extern "C" {
#define RTE_KVARGS_KV_DELIM "="
/** Type of callback function used by rte_kvargs_process() */
-typedef int (*arg_handler_t)(char *value, void *opaque);
+typedef int (*arg_handler_t)(const char *value, void *opaque);
/** A key/value association */
struct rte_kvargs_pair {