summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authoryorah <yoram.harmelin@gmail.com>2013-06-17 14:27:34 +0200
committeryorah <yoram.harmelin@gmail.com>2013-06-17 15:42:33 +0200
commit3425fee63773813a48f596637609efaa36428713 (patch)
tree0fa2e07c65d93b1e300d51631e2932f8f4973ed7 /src/util.c
parent824cf80f061ab31f45c94576f9e75533201a4578 (diff)
downloadlibgit2-3425fee63773813a48f596637609efaa36428713.tar.gz
util: git__memzero() tweaks
On Linux: fix a warning message related to the volatile qualifier (cast) On Windows: use SecureZeroMemory() On both, inline the call, so that no entry point can lead back to this "secure" memory zeroing.
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/util.c b/src/util.c
index 1d084daa8..da15a039d 100644
--- a/src/util.c
+++ b/src/util.c
@@ -722,12 +722,3 @@ void git__insertsort_r(
if (freeswap)
git__free(swapel);
}
-
-void git__memzero(volatile void *data, size_t size)
-{
- volatile uint8_t *scan = data;
- uint8_t *end = scan + size;
-
- while (scan < end)
- *scan++ = 0x0;
-}