svn commit: r256586 - head/sys/net
Gleb Smirnoff
glebius at FreeBSD.org
Wed Oct 16 04:59:59 UTC 2013
Author: glebius
Date: Wed Oct 16 04:59:59 2013
New Revision: 256586
URL: http://svnweb.freebsd.org/changeset/base/256586
Log:
Rename Free() macro to R_Free(). This matches R_Malloc() and has much lower
probability to clash with other headers.
Submitted by: Eric van Gyzen <eric_van_gyzen dell.com>
Modified:
head/sys/net/radix.h
Modified: head/sys/net/radix.h
==============================================================================
--- head/sys/net/radix.h Wed Oct 16 04:22:26 2013 (r256585)
+++ head/sys/net/radix.h Wed Oct 16 04:59:59 2013 (r256586)
@@ -141,7 +141,7 @@ struct radix_node_head {
#ifndef _KERNEL
#define R_Malloc(p, t, n) (p = (t) malloc((unsigned int)(n)))
#define R_Zalloc(p, t, n) (p = (t) calloc(1,(unsigned int)(n)))
-#define Free(p) free((char *)p);
+#define R_Free(p) free((char *)p);
#else
#define R_Malloc(p, t, n) (p = (t) malloc((unsigned long)(n), M_RTABLE, M_NOWAIT))
#define R_Zalloc(p, t, n) (p = (t) malloc((unsigned long)(n), M_RTABLE, M_NOWAIT | M_ZERO))
More information about the svn-src-all
mailing list