summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichele papalini <micpapal@cisco.com>2019-02-18 15:11:14 +0100
committermichele papalini <micpapal@cisco.com>2019-02-18 15:11:14 +0100
commit63140cf46b43824d77206402cef13f01c2b9cdde (patch)
tree7030ef1253310830891c16bf92a2f89808ed6625
parent2fd90aea1831942cda49d6635e95c86d8e494966 (diff)
[HICN-68] remove compiling warnign on MAC-OS
Change-Id: I6e238cd3ae20e081cfedec8c249eebec38af2028 Signed-off-by: michele papalini <micpapal@cisco.com>
-rw-r--r--hicn-light/src/io/udpListener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-light/src/io/udpListener.c b/hicn-light/src/io/udpListener.c
index 4411bc7f6..6cdb9283e 100644
--- a/hicn-light/src/io/udpListener.c
+++ b/hicn-light/src/io/udpListener.c
@@ -459,7 +459,7 @@ static void _readCommand(UdpListener *udp, int fd,
command_id id = *(command + 1);
- if ( id < 0 || id >= LAST_COMMAND_VALUE){
+ if (id >= LAST_COMMAND_VALUE){
printf("the message received is not a valid command, drop\n");
return;
}