summaryrefslogtreecommitdiff
path: root/vtysh/vtysh_user.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-07-28 17:23:49 +0200
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-07-28 07:27:48 -0400
commitc66f9c6186acb837a4fab441469a26b406f08e37 (patch)
tree55cccc9eedfbfdd8e2b424f4cac1535c7472fa3b /vtysh/vtysh_user.c
parent5ef104fc4131cacaf1843bb32e19d4b681fc5214 (diff)
*: get rid of "MTYPE 0"
A few places are using 0 in place of the MTYPE_* argument. The following rewrite of the alloc tracking won't deal with that, so let's use MTYPE_TMP instead. Acked-by: Vincent JARDIN <vincent.jardin@6wind.com> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com> [DL: v2: fix XFREE(0, foo) calls too] Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'vtysh/vtysh_user.c')
-rw-r--r--vtysh/vtysh_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c
index 0d72c378a3..988c768dce 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 *