windows: don't provide strsep(), fio already has one
authorJens Axboe <axboe@kernel.dk>
Wed, 23 Jan 2013 23:28:24 +0000 (16:28 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Jan 2013 23:28:24 +0000 (16:28 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure
os/windows/posix.c

index 7c12b016d374c56d2cd9fb4fe19288c305fafaaa..f730dfdb369947d6b1d77d98ff0e78ffe5a5ae13 100755 (executable)
--- a/configure
+++ b/configure
@@ -157,7 +157,6 @@ CYGWIN*)
   echo "CONFIG_CLOCK_MONOTONIC=y"  >> $config_host_mak
   echo "CONFIG_GETTIMEOFDAY=y"     >> $config_host_mak
   echo "CONFIG_FADVISE=y"          >> $config_host_mak
-  echo "CONFIG_STRSEP=y"           >> $config_host_mak
   echo "CONFIG_SOCKLEN_T=y"        >> $config_host_mak
   echo "CONFIG_POSIX_FALLOCATE=y"  >> $config_host_mak
   echo "CONFIG_FADVISE=y"          >> $config_host_mak
index f5d530011c4f938134bc8a6f77219704a053ebce..67e71c8eabe57a0f2041c78a10cab9ac7c133ec0 100755 (executable)
@@ -628,39 +628,6 @@ long long strtoll(const char *restrict str, char **restrict endptr,
        return _strtoi64(str, endptr, base);
 }
 
-char *strsep(char **stringp, const char *delim)
-{
-       char *orig = *stringp;
-       BOOL gotMatch = FALSE;
-       int i = 0;
-       int j = 0;
-
-       if (*stringp == NULL)
-               return NULL;
-
-       while ((*stringp)[i] != '\0') {
-               j = 0;
-               while (delim[j] != '\0') {
-                       if ((*stringp)[i] == delim[j]) {
-                               gotMatch = TRUE;
-                               (*stringp)[i] = '\0';
-                               *stringp = *stringp + i + 1;
-                               break;
-                       }
-                       j++;
-               }
-               if (gotMatch)
-                       break;
-
-               i++;
-       }
-
-       if (!gotMatch)
-               *stringp = NULL;
-
-       return orig;
-}
-
 int poll(struct pollfd fds[], nfds_t nfds, int timeout)
 {
        struct timeval tv;