aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-27 15:36:42 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-27 16:18:42 -0400
commite165c9c304800718daa589469349282110e00909 (patch)
treee76462a054c9a1f465b1e38f192dce45a4b33e9c /src/common/compat.h
parent9e592d1decf1b16128a716220de68322b51d6315 (diff)
downloadtor-e165c9c304800718daa589469349282110e00909.tar.gz
tor-e165c9c304800718daa589469349282110e00909.zip
Move various mem* functions to lib/string
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 766f625572..399badb6a6 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -63,16 +63,6 @@
#include <stdio.h>
#include <errno.h>
-const void *tor_memmem(const void *haystack, size_t hlen, const void *needle,
- size_t nlen) ATTR_NONNULL((1,3));
-static const void *tor_memstr(const void *haystack, size_t hlen,
- const char *needle) ATTR_NONNULL((1,3));
-static inline const void *
-tor_memstr(const void *haystack, size_t hlen, const char *needle)
-{
- return tor_memmem(haystack, hlen, needle, strlen(needle));
-}
-
/* ===== Time compatibility */
struct tm *tor_localtime_r(const time_t *timep, struct tm *result);