summaryrefslogtreecommitdiff
path: root/src/cli_new.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-29 15:23:11 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-29 15:23:11 -0700
commitad1ea7f47cb37212105e910db8c71ba5525cd8b9 (patch)
treefe085da8ae5ad6ec02255c1c51b75ead90a909f7 /src/cli_new.c
parent0e635a25c5c5bbedd068f78a14008dc021dd196a (diff)
downloadvyatta-cfg-ad1ea7f47cb37212105e910db8c71ba5525cd8b9.tar.gz
vyatta-cfg-ad1ea7f47cb37212105e910db8c71ba5525cd8b9.zip
Turn my_wrappers into macros
The my_malloc() etc wrappers can be shrunk by using macros.
Diffstat (limited to 'src/cli_new.c')
-rw-r--r--src/cli_new.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/src/cli_new.c b/src/cli_new.c
index c1f5aac..83cc150 100644
--- a/src/cli_new.c
+++ b/src/cli_new.c
@@ -2074,35 +2074,7 @@ int cli_val_read(char *buf, int max_size)
}
return len;
}
-/*==========================================================*/
-/* MEMORY */
-/*==========================================================*/
-
-void *my_malloc(size_t size, const char *name)
-{
- return malloc(size);
-}
-void *my_realloc(void *ptr, size_t size, const char *name)
-{
- return realloc(ptr, size);
-}
-
-void my_free(void *ptr)
-{
- free(ptr);
-}
-
-/*************************************************
- my_strdup:
- do a strdup,
- exit on no memory
-**************************************************/
-char *my_strdup(const char *s, const char *name)
-{
- return strdup(s);
-}
-
-void done()
+void done(void)
{
free_reuse_list();
free_path(&t_path);