Date: Sun, 4 Nov 2007 16:08:22 GMT From: Paolo Pisati <piso@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 128623 for review Message-ID: <200711041608.lA4G8MmP030362@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=128623 Change 128623 by piso@piso_newluxor on 2007/11/04 16:07:28 Expand a macro used only in one place. Affected files ... .. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_local.h#27 edit Differences ... ==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_local.h#27 (text+ko) ==== @@ -191,11 +191,9 @@ #ifdef _KERNEL typedef struct mbuf ** pkt_t; -#define MYMTOD(p, foo) (p != NULL) ? mtod(p, foo) : NULL - #define PULLUP_SIZE(pip, ptr, s) do { \ *ptr = m_pullup((*ptr), s); \ - (pip) = MYMTOD(*ptr, struct ip *); \ + (pip) = (*ptr != NULL) ? mtod(*ptr, struct ip *) : NULL; \ } while (0) #define PULLUP_IPHDR(pip, ptr) do { \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711041608.lA4G8MmP030362>