summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-06-12 21:10:33 +0200
committerVicent Marti <tanoku@gmail.com>2013-06-12 21:10:33 +0200
commit6de9b2ee14a2393fae3ed86c5a5d12712c83b083 (patch)
tree5fa21515d4ed0810b0dd35c6e6af1c8d1060e125 /src/util.h
parenteb58e2d0be4e07c2ef873a5f0562eaa90826c2de (diff)
downloadlibgit2-6de9b2ee14a2393fae3ed86c5a5d12712c83b083.tar.gz
util: It's called `memzero`
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.h b/src/util.h
index 9417515a3..0de466677 100644
--- a/src/util.h
+++ b/src/util.h
@@ -322,9 +322,9 @@ extern int git__date_parse(git_time_t *out, const char *date);
extern size_t git__unescape(char *str);
/*
- * Memset that will not be optimized away by the compiler.
- * You usually should just use regular `memset()`.
+ * Safely zero-out memory, making sure that the compiler
+ * doesn't optimize away the operation.
*/
-extern void git__memset(void *data, int c, size_t size);
+extern void git__memzero(volatile void *data, size_t size);
#endif /* INCLUDE_util_h__ */