summaryrefslogtreecommitdiffstats
path: root/lib/memory.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-04 19:10:31 +0000
committerhasso <hasso>2004-10-04 19:10:31 +0000
commit2c867c810ec96a5187bc204b3338d710ed027ff7 (patch)
tree33dd9c518d71db028c5ea690ace614ea768fb35d /lib/memory.c
parentf131d4ceedc8ad48d21543e72c41109c0de7adf0 (diff)
downloadquagga-2c867c810ec96a5187bc204b3338d710ed027ff7.tar.bz2
quagga-2c867c810ec96a5187bc204b3338d710ed027ff7.tar.xz
First small part of lib cleanup. Mainly "constification" of arguments and
adding FIXME's.
Diffstat (limited to 'lib/memory.c')
-rw-r--r--lib/memory.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/memory.c b/lib/memory.c
index faf3f266..8b311aea 100644
--- a/lib/memory.c
+++ b/lib/memory.c
@@ -101,7 +101,7 @@ zfree (int type, void *ptr)
/* String duplication. */
char *
-zstrdup (int type, char *str)
+zstrdup (int type, const char *str)
{
void *dup;
@@ -115,7 +115,7 @@ zstrdup (int type, char *str)
#ifdef MEMORY_LOG
struct
{
- char *name;
+ const char *name;
unsigned long alloc;
unsigned long t_malloc;
unsigned long c_malloc;
@@ -187,7 +187,7 @@ mtype_zfree (const char *file, int line, int type, void *ptr)
}
char *
-mtype_zstrdup (const char *file, int line, int type, char *str)
+mtype_zstrdup (const char *file, int line, int type, const char *str)
{
char *memory;
@@ -230,7 +230,7 @@ alloc_dec (int type)
struct memory_list
{
int index;
- char *format;
+ const char *format;
};
struct memory_list memory_list_lib[] =