summaryrefslogtreecommitdiff
path: root/lib/memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memory.h')
-rw-r--r--lib/memory.h53
1 files changed, 20 insertions, 33 deletions
diff --git a/lib/memory.h b/lib/memory.h
index 3ec89a97..ef20b8c9 100644
--- a/lib/memory.h
+++ b/lib/memory.h
@@ -58,38 +58,25 @@ extern struct mlist mlists[];
#endif /* MEMORY_LOG */
/* Prototypes of memory function. */
-void *zmalloc (int type, size_t size);
-void *zcalloc (int type, size_t size);
-void *zrealloc (int type, void *ptr, size_t size);
-void zfree (int type, void *ptr);
-char *zstrdup (int type, const char *str);
-
-void *mtype_zmalloc (const char *file,
- int line,
- int type,
- size_t size);
-
-void *mtype_zcalloc (const char *file,
- int line,
- int type,
- size_t num,
- size_t size);
-
-void *mtype_zrealloc (const char *file,
- int line,
- int type,
- void *ptr,
- size_t size);
-
-void mtype_zfree (const char *file,
- int line,
- int type,
- void *ptr);
-
-char *mtype_zstrdup (const char *file,
- int line,
- int type,
- const char *str);
-void memory_init (void);
+extern void *zmalloc (int type, size_t size);
+extern void *zcalloc (int type, size_t size);
+extern void *zrealloc (int type, void *ptr, size_t size);
+extern void zfree (int type, void *ptr);
+extern char *zstrdup (int type, const char *str);
+
+extern void *mtype_zmalloc (const char *file, int line, int type, size_t size);
+
+extern void *mtype_zcalloc (const char *file, int line, int type,
+ size_t num, size_t size);
+
+extern void *mtype_zrealloc (const char *file, int line, int type, void *ptr,
+ size_t size);
+
+extern void mtype_zfree (const char *file, int line, int type,
+ void *ptr);
+
+extern char *mtype_zstrdup (const char *file, int line, int type,
+ const char *str);
+extern void memory_init (void);
#endif /* _ZEBRA_MEMORY_H */