summaryrefslogtreecommitdiffstats
path: root/hicn-light/src/config/controlAddListener.c
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src/config/controlAddListener.c')
-rw-r--r--hicn-light/src/config/controlAddListener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-light/src/config/controlAddListener.c b/hicn-light/src/config/controlAddListener.c
index 2cabfd035..03900a861 100644
--- a/hicn-light/src/config/controlAddListener.c
+++ b/hicn-light/src/config/controlAddListener.c
@@ -111,7 +111,7 @@ static CommandReturn _CreateListener(CommandParser *parser, CommandOps *ops,
// Fill remaining payload fields
addListenerCommand->listenerMode = mode;
addListenerCommand->connectionType = type;
- addListenerCommand->port = htons((uint16_t)atoi(port));
+ addListenerCommand->port = (uint16_t)atoi(port);
strcpy(addListenerCommand->symbolic, symbolic);
// send message and receive response