aboutsummaryrefslogtreecommitdiffstats
path: root/epan/emem.c
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-10-11 07:15:15 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-10-11 07:15:15 +0000
commit5ea31fa45014e0475b4816c9b3999ca0d11dcd14 (patch)
tree25ec50ccefd32d18ae9eae50e336ec2970890f27 /epan/emem.c
parent876f39f5a3b4dd6f01cc1f53c47e9870a831d948 (diff)
Rename emem_canary => emem_canary_init to make it clear that the function initializes the canary
svn path=/trunk/; revision=30493
Diffstat (limited to 'epan/emem.c')
-rw-r--r--epan/emem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/emem.c b/epan/emem.c
index 01c67f9b2b..c4afedeedd 100644
--- a/epan/emem.c
+++ b/epan/emem.c
@@ -153,9 +153,9 @@ static intptr_t pagesize;
* Set a canary value to be placed between memchunks.
*/
static void
-emem_canary(guint8 *canary) {
+emem_canary_init(guint8 *canary) {
int i;
- static GRand *rand_state = NULL;
+ static GRand *rand_state = NULL;
if (rand_state == NULL) {
rand_state = g_rand_new();
@@ -244,7 +244,7 @@ ep_init_chunk(void)
#endif
if (ep_debug_use_canary)
- emem_canary(ep_canary);
+ emem_canary_init(ep_canary);
#if defined (_WIN32)
/* Set up our guard page info for Win32 */
@@ -285,7 +285,7 @@ se_init_chunk(void)
if (getenv("WIRESHARK_DEBUG_SE_USE_CANARY")) {
se_debug_use_canary = TRUE;
- emem_canary(se_canary);
+ emem_canary_init(se_canary);
} else
se_debug_use_canary = FALSE;
}