aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/config/command.h
diff options
context:
space:
mode:
authorEnrico Loparco (eloparco) <eloparco@cisco.com>2021-06-24 17:04:19 +0200
committerEnrico Loparco (eloparco) <eloparco@cisco.com>2021-06-24 17:04:19 +0200
commitaf389692c0a687675c74fd432e3a2309337ad3c9 (patch)
tree466e0cda39ca97f37c7b6e3f4fd849fb6e4822cb /hicn-light/src/hicn/config/command.h
parent4f1b9570602c069746a9d63197df29e8b5195df2 (diff)
[HICN-712] Fix listener table retrievalhicn-light-ng
Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com> Change-Id: I8cd7c37a570011c2215255fab5e020291dfd0ef7
Diffstat (limited to 'hicn-light/src/hicn/config/command.h')
-rw-r--r--hicn-light/src/hicn/config/command.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/hicn-light/src/hicn/config/command.h b/hicn-light/src/hicn/config/command.h
index 4cc770e0d..ddeb94b03 100644
--- a/hicn-light/src/hicn/config/command.h
+++ b/hicn-light/src/hicn/config/command.h
@@ -13,7 +13,7 @@
/* Update sscanf accordingly in parse_cmd.c */
#define MAX_PARAMETERS 10
-#define MAX_SCANF_PARAM_LEN 10
+#define MAX_SCANF_PARAM_LEN 100
typedef int (*parser_hook_t)(void * arg);
@@ -126,7 +126,7 @@ typedef struct {
}, \
}
/* We need to allocate room for the intermediate string */
-#define TYPE_FMT_ENUM "%ms"
+#define TYPE_FMT_ENUM "%s"
#define TYPE_POLICY_STATE(TAG) (parser_type_t) { \
.name = TYPENAME_POLICY_STATE, \
@@ -135,7 +135,7 @@ typedef struct {
}, \
}
/* We need to allocate room for the intermediate string */
-#define TYPE_FMT_POLICY_STATE "%ms"
+#define TYPE_FMT_POLICY_STATE "%s"
/**
* \brief Register a protocol