From 1ac41cb08281bf5460dfea5fc40ff6f8e14873a1 Mon Sep 17 00:00:00 2001 From: Angelo Mantellini Date: Sun, 10 Feb 2019 13:34:22 +0100 Subject: [HICN-49] Remove warnings hicn-light on windows Change-Id: I106713c285ad5cc47cb5ae3aaf9c837685156e36 Signed-off-by: Angelo Mantellini --- hicn-light/src/config/commandParser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hicn-light/src/config/commandParser.c') diff --git a/hicn-light/src/config/commandParser.c b/hicn-light/src/config/commandParser.c index 9a947d8b7..9759d2e37 100644 --- a/hicn-light/src/config/commandParser.c +++ b/hicn-light/src/config/commandParser.c @@ -35,9 +35,11 @@ #ifdef HAVE_ERRNO_H #include #else +#ifndef _WIN32 extern int errno; #endif #endif +#endif struct command_parser { // key = command, value = CommandOps @@ -122,7 +124,7 @@ static PARCList *parseStringIntoTokens(const char *originalString) { char *tofree = parcMemory_StringDuplicate(originalString, strlen(originalString) + 1); char *string = tofree; - + token = strtok(string, " \t\n"); while (token != NULL) { if (strlen(token) > 0) { -- cgit 1.2.3-korg