summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/prefix.c2
-rw-r--r--ospfclient/ospf_apiclient.h2
-rw-r--r--ospfd/ospf_opaque.c6
-rw-r--r--ospfd/ospf_snmp.c4
-rw-r--r--ospfd/ospf_te.c2
-rw-r--r--vtysh/vtysh_main.c4
-rw-r--r--vtysh/vtysh_user.c2
-rw-r--r--zebra/zserv.c4
8 files changed, 13 insertions, 13 deletions
diff --git a/lib/prefix.c b/lib/prefix.c
index 256cd3a49..c311b94ee 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -572,7 +572,7 @@ str2prefix_ipv6 (const char *str, struct prefix_ipv6 *p)
{
int plen;
- cp = XMALLOC (0, (pnt - str) + 1);
+ cp = XMALLOC (MTYPE_TMP, (pnt - str) + 1);
strncpy (cp, str, pnt - str);
*(cp + (pnt - str)) = '\0';
ret = inet_pton (AF_INET6, cp, &p->prefix);
diff --git a/ospfclient/ospf_apiclient.h b/ospfclient/ospf_apiclient.h
index 0e74787ae..809861995 100644
--- a/ospfclient/ospf_apiclient.h
+++ b/ospfclient/ospf_apiclient.h
@@ -23,7 +23,7 @@
#ifndef _OSPF_APICLIENT_H
#define _OSPF_APICLIENT_H
-#define MTYPE_OSPF_APICLIENT 0
+#define MTYPE_OSPF_APICLIENT MTYPE_TMP
/* Structure for the OSPF API client */
struct ospf_apiclient
diff --git a/ospfd/ospf_opaque.c b/ospfd/ospf_opaque.c
index 4c05c7725..ff505b6bd 100644
--- a/ospfd/ospf_opaque.c
+++ b/ospfd/ospf_opaque.c
@@ -22,9 +22,9 @@
*/
/***** MTYPE definitions are not reflected to "memory.h" yet. *****/
-#define MTYPE_OSPF_OPAQUE_FUNCTAB 0
-#define MTYPE_OPAQUE_INFO_PER_TYPE 0
-#define MTYPE_OPAQUE_INFO_PER_ID 0
+#define MTYPE_OSPF_OPAQUE_FUNCTAB MTYPE_TMP
+#define MTYPE_OPAQUE_INFO_PER_TYPE MTYPE_TMP
+#define MTYPE_OPAQUE_INFO_PER_ID MTYPE_TMP
#include <zebra.h>
#ifdef HAVE_OPAQUE_LSA
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index 0eaf44b4d..bedcb559b 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -1420,13 +1420,13 @@ struct ospf_snmp_if
static struct ospf_snmp_if *
ospf_snmp_if_new (void)
{
- return XCALLOC (0, sizeof (struct ospf_snmp_if));
+ return XCALLOC (MTYPE_TMP, sizeof (struct ospf_snmp_if));
}
static void
ospf_snmp_if_free (struct ospf_snmp_if *osif)
{
- XFREE (0, osif);
+ XFREE (MTYPE_TMP, osif);
}
void
diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c
index db06623dd..155a773b3 100644
--- a/ospfd/ospf_te.c
+++ b/ospfd/ospf_te.c
@@ -22,7 +22,7 @@
*/
/***** MTYPE definition is not reflected to "memory.h" yet. *****/
-#define MTYPE_OSPF_MPLS_TE_LINKPARAMS 0
+#define MTYPE_OSPF_MPLS_TE_LINKPARAMS MTYPE_TMP
#include <zebra.h>
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c
index cd21c94ef..5bb3c61e5 100644
--- a/vtysh/vtysh_main.c
+++ b/vtysh/vtysh_main.c
@@ -317,7 +317,7 @@ main (int argc, char **argv, char **env)
case 'c':
{
struct cmd_rec *cr;
- cr = XMALLOC(0, sizeof(*cr));
+ cr = XMALLOC(MTYPE_TMP, sizeof(*cr));
cr->line = optarg;
cr->next = NULL;
if (tail)
@@ -501,7 +501,7 @@ main (int argc, char **argv, char **env)
struct cmd_rec *cr;
cr = cmd;
cmd = cmd->next;
- XFREE(0, cr);
+ XFREE(MTYPE_TMP, cr);
}
}
diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c
index 0d72c378a..988c768dc 100644
--- a/vtysh/vtysh_user.c
+++ b/vtysh/vtysh_user.c
@@ -116,7 +116,7 @@ struct list *userlist;
static struct vtysh_user *
user_new (void)
{
- return XCALLOC (0, sizeof (struct vtysh_user));
+ return XCALLOC (MTYPE_TMP, sizeof (struct vtysh_user));
}
static struct vtysh_user *
diff --git a/zebra/zserv.c b/zebra/zserv.c
index b36f8fe42..d625c02ff 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -1867,7 +1867,7 @@ zebra_client_close (struct zserv *client)
/* Free client structure. */
listnode_delete (zebrad.client_list, client);
- XFREE (0, client);
+ XFREE (MTYPE_TMP, client);
}
/* Make new client. */
@@ -1878,7 +1878,7 @@ zebra_client_create (int sock)
int i;
afi_t afi;
- client = XCALLOC (0, sizeof (struct zserv));
+ client = XCALLOC (MTYPE_TMP, sizeof (struct zserv));
/* Make client input/output buffer. */
client->sock = sock;