diff options
author | Luca Deri <deri@ntop.org> | 2015-11-30 14:22:01 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2015-11-30 14:22:01 +0100 |
commit | 34491f4be16733b7d9a596fbcbf84beaf986bc2e (patch) | |
tree | 239acb4662ca428d6fa579615f25f6a97c747af2 /src/lib/ndpi_main.c | |
parent | 34e0a74c0764b776ac71e33789cdf912afad376b (diff) | |
parent | 587f156557c67a8dd4e025d7ce08b154cbb1132d (diff) |
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 51a2c66b0..dd5022b03 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -4484,45 +4484,3 @@ void NDPI_DUMP_BITMASK(NDPI_PROTOCOL_BITMASK a) { printf("\n"); } - -/* #ifdef WIN32 */ -/* /\* http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/bsd/libkern/strsep.c *\/ */ - -/* /\* */ -/* * Get next token from string *stringp, where tokens are possibly-empty */ -/* * strings separated by characters from delim. */ -/* * */ -/* * Writes NULs into the string at *stringp to end tokens. */ -/* * delim need not remain constant from call to call. */ -/* * On return, *stringp points past the last NUL written (if there might */ -/* * be further tokens), or is NULL (if there are definitely no more tokens). */ -/* * */ -/* * If *stringp is NULL, strsep returns NULL. */ -/* *\/ */ -/* char* strsep(char **stringp, const char *delim) { */ -/* char *s; */ -/* const char *spanp; */ -/* int c, sc; */ -/* char *tok; */ - -/* if((s = *stringp) == NULL) */ -/* return (NULL); */ -/* for(tok = s;;) { */ -/* c = *s++; */ -/* spanp = delim; */ -/* do { */ -/* if((sc = *spanp++) == c) { */ -/* if(c == 0) */ -/* s = NULL; */ -/* else */ -/* s[-1] = 0; */ -/* *stringp = s; */ -/* return (tok); */ -/* } */ -/* } while (sc != 0); */ -/* } */ -/* /\* NOTREACHED *\/ */ -/* } */ -/* #endif */ - - |