summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2015-02-17 18:53:33 +0000
committerYawning Angel <yawning@schwanenlied.me>2015-02-17 18:53:33 +0000
commitcbd26157c52e27af16efcb474861eb4126085283 (patch)
treebd6705b51cf4dcda50715f734d3565a9806d3d50 /src/common/util.c
parentd038430a1409fbb28ea4d0b62654fc3cc7bb1f7a (diff)
downloadtor-cbd26157c52e27af16efcb474861eb4126085283.tar.gz
tor-cbd26157c52e27af16efcb474861eb4126085283.zip
Remove tor_strclear(), and replace previous calls with memwipe().
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 442d57a2cf..2c3a1a1019 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -771,16 +771,6 @@ fast_memcmpstart(const void *mem, size_t memlen,
return fast_memcmp(mem, prefix, plen);
}
-/** Given a nul-terminated string s, set every character before the nul
- * to zero. */
-void
-tor_strclear(char *s)
-{
- while (*s) {
- *s++ = '\0';
- }
-}
-
/** Return a pointer to the first char of s that is not whitespace and
* not a comment, or to the terminating NUL if no such character exists.
*/