summaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-27 15:28:55 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-27 15:28:55 -0400
commit9e592d1decf1b16128a716220de68322b51d6315 (patch)
tree064af78114c528fe06441067d9648e1dc5191c42 /src/common/compat.h
parent4d81f5211b3c714edae6370bccc6873033c0092d (diff)
downloadtor-9e592d1decf1b16128a716220de68322b51d6315.tar.gz
tor-9e592d1decf1b16128a716220de68322b51d6315.zip
Move tor_strtok_r to libtor-string
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 2282e07be3..766f625572 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -73,13 +73,6 @@ tor_memstr(const void *haystack, size_t hlen, const char *needle)
return tor_memmem(haystack, hlen, needle, strlen(needle));
}
-char *tor_strtok_r_impl(char *str, const char *sep, char **lasts);
-#ifdef HAVE_STRTOK_R
-#define tor_strtok_r(str, sep, lasts) strtok_r(str, sep, lasts)
-#else
-#define tor_strtok_r(str, sep, lasts) tor_strtok_r_impl(str, sep, lasts)
-#endif
-
/* ===== Time compatibility */
struct tm *tor_localtime_r(const time_t *timep, struct tm *result);