diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-02-06 13:35:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-06 13:35:56 +0100 |
commit | 9194199c9894c5fd4f497fbbf5fc0449686c8fe5 (patch) | |
tree | 28fcef4121e585704b6d695d2113a037a165141e /src/basic/string-util.h | |
parent | 65c8834942a5ca2d2016f28c4dfc6738a717ed69 (diff) | |
parent | 1075122f42211ddb319126d6713a68a05056cd9d (diff) |
Merge pull request #5237 from keszybz/explicit-bzero
Use `explicit_bzero`
Diffstat (limited to 'src/basic/string-util.h')
-rw-r--r-- | src/basic/string-util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/basic/string-util.h b/src/basic/string-util.h index e99f7964be..be44dedff4 100644 --- a/src/basic/string-util.h +++ b/src/basic/string-util.h @@ -189,7 +189,10 @@ static inline void *memmem_safe(const void *haystack, size_t haystacklen, const return memmem(haystack, haystacklen, needle, needlelen); } -void* memory_erase(void *p, size_t l); +#if !HAVE_DECL_EXPLICIT_BZERO +void explicit_bzero(void *p, size_t l); +#endif + char *string_erase(char *x); char *string_free_erase(char *s); |