aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport-testing-filenames.c
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-09-09 19:17:18 +0000
committerng0 <ng0@n0.is>2019-09-09 19:17:18 +0000
commit483b0139a218a5f8a8311bda3eb23bcd88f57688 (patch)
treed9e7a0f5053cdaa1a720485b93e9927f08466958 /src/transport/transport-testing-filenames.c
parentec472b1aae122481f4f7e760e5242753eba9bf87 (diff)
downloadgnunet-483b0139a218a5f8a8311bda3eb23bcd88f57688.tar.gz
gnunet-483b0139a218a5f8a8311bda3eb23bcd88f57688.zip
Remove win32 and cygwin support
Diffstat (limited to 'src/transport/transport-testing-filenames.c')
-rw-r--r--src/transport/transport-testing-filenames.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/transport/transport-testing-filenames.c b/src/transport/transport-testing-filenames.c
index 865907007..8d493864e 100644
--- a/src/transport/transport-testing-filenames.c
+++ b/src/transport/transport-testing-filenames.c
@@ -40,25 +40,6 @@ extract_filename(const char *file)
40 char *filename = NULL; 40 char *filename = NULL;
41 char *res; 41 char *res;
42 42
43#if WINDOWS
44 if ((strlen(pch) >= 3) && pch[1] == ':')
45 {
46 if (NULL != strstr(pch, "\\"))
47 {
48 pch = strtok(pch, "\\");
49 while (pch != NULL)
50 {
51 pch = strtok(NULL, "\\");
52 if (pch != NULL)
53 filename = pch;
54 }
55 }
56 }
57 if (filename != NULL)
58 pch = filename; /* If we miss the next condition, filename = pch will
59 * not harm us.
60 */
61#endif
62 if (NULL != strstr(pch, "/")) 43 if (NULL != strstr(pch, "/"))
63 { 44 {
64 pch = strtok(pch, "/"); 45 pch = strtok(pch, "/");