diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-22 09:23:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-22 09:49:13 -0400 |
commit | 1abadee3fd1c15f3720003c411ec6043c29d7c09 (patch) | |
tree | 64cb47b2d5352219fc71f36505d9c0bdcc93bb0a /src/lib/container | |
parent | 1e07b4031e2613826cf7ff2838a2f0c8f03e81c2 (diff) | |
download | tor-1abadee3fd1c15f3720003c411ec6043c29d7c09.tar.gz tor-1abadee3fd1c15f3720003c411ec6043c29d7c09.zip |
Extract key string manipulation functions into a new library.
Diffstat (limited to 'src/lib/container')
-rw-r--r-- | src/lib/container/.may_include | 1 | ||||
-rw-r--r-- | src/lib/container/map.c | 3 | ||||
-rw-r--r-- | src/lib/container/smartlist.c | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/container/.may_include b/src/lib/container/.may_include index 2dfa85b205..eaa020bf50 100644 --- a/src/lib/container/.may_include +++ b/src/lib/container/.may_include @@ -5,6 +5,7 @@ lib/ctime/*.h lib/defs/*.h lib/malloc/*.h lib/err/*.h +lib/string/*.h lib/testsupport/testsupport.h ht.h diff --git a/src/lib/container/map.c b/src/lib/container/map.c index f6b0f73c17..ba59e37d6f 100644 --- a/src/lib/container/map.c +++ b/src/lib/container/map.c @@ -14,9 +14,10 @@ #include "lib/container/map.h" #include "lib/ctime/di_ops.h" #include "lib/defs/digest_sizes.h" +#include "lib/string/util_string.h" +#include "lib/malloc/util_malloc.h" #include "common/util_bug.h" -#include "common/util.h" // For strlower #include <stdlib.h> #include <string.h> diff --git a/src/lib/container/smartlist.c b/src/lib/container/smartlist.c index 2d861f566c..3a0a2d1068 100644 --- a/src/lib/container/smartlist.c +++ b/src/lib/container/smartlist.c @@ -14,9 +14,10 @@ #include "lib/malloc/util_malloc.h" #include "lib/container/smartlist.h" #include "lib/err/torerr.h" -#include "common/util.h" // For strstrip. +#include "lib/malloc/util_malloc.h" #include "lib/defs/digest_sizes.h" #include "lib/ctime/di_ops.h" +#include "lib/string/util_string.h" #include <stdlib.h> #include <string.h> |