diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-07-28 17:23:49 +0200 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-07-28 07:27:48 -0400 |
| commit | c66f9c6186acb837a4fab441469a26b406f08e37 (patch) | |
| tree | 55cccc9eedfbfdd8e2b424f4cac1535c7472fa3b /lib/prefix.c | |
| parent | 5ef104fc4131cacaf1843bb32e19d4b681fc5214 (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 'lib/prefix.c')
| -rw-r--r-- | lib/prefix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prefix.c b/lib/prefix.c index 256cd3a49a..c311b94eef 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); |
