diff options
author | Stefan Walter <stefw@src.gnome.org> | 2009-02-13 18:05:26 +0000 |
---|---|---|
committer | Stefan Walter <stefw@src.gnome.org> | 2009-02-13 18:05:26 +0000 |
commit | 6968dcc5cb56b9a2f30a1f23192ae6d93cd3792d (patch) | |
tree | ca5bd4c7809903df01bf77d8da455a4aea22cb5a /egg/egg-secure-memory.c | |
parent | 982aadd9e2d09ff4cd33eeb5df95d23335646b0c (diff) | |
download | gnome-keyring-6968dcc5cb56b9a2f30a1f23192ae6d93cd3792d.tar.gz |
Use size_t and gsize for memory sizes rather than unsigned long.
Fixes bug #571615
svn path=/trunk/; revision=1563
Diffstat (limited to 'egg/egg-secure-memory.c')
-rw-r--r-- | egg/egg-secure-memory.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/egg/egg-secure-memory.c b/egg/egg-secure-memory.c index 2e99b7e0..131655de 100644 --- a/egg/egg-secure-memory.c +++ b/egg/egg-secure-memory.c @@ -617,7 +617,7 @@ sec_allocated (Block *block, void *memory) */ static void* -sec_acquire_pages (unsigned long *sz) +sec_acquire_pages (size_t *sz) { void *pages; unsigned long pgsize; @@ -664,7 +664,7 @@ sec_acquire_pages (unsigned long *sz) } static void -sec_release_pages (void *pages, unsigned long sz) +sec_release_pages (void *pages, size_t sz) { ASSERT (pages); ASSERT (sz % getpagesize () == 0); @@ -690,7 +690,7 @@ sec_release_pages (void *pages, unsigned long sz) static Block *all_blocks = NULL; static Block* -sec_block_create (unsigned long size) +sec_block_create (size_t size) { Block *block; Cell *cell; @@ -826,7 +826,7 @@ egg_secure_realloc (void *memory, size_t length) } void* -egg_secure_realloc_full (void *memory, unsigned long length, int flags) +egg_secure_realloc_full (void *memory, size_t length, int flags) { Block *block = NULL; size_t previous = 0; @@ -971,7 +971,7 @@ egg_secure_dump_blocks (void) char* egg_secure_strdup (const char *str) { - unsigned long len; + size_t len; char *res; if (!str) |