diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2004-07-28 06:59:55 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2004-07-28 06:59:55 +0000 |
commit | 445e045b0d8959ad639767025a83c8367b5200e7 (patch) | |
tree | f5a1d1e036ff3b1d82ae6564771ad7253a6da5d5 /sys/netgraph/ng_fec.c | |
parent | 766f8c92470efd014392d4018415944f0134bbbd (diff) | |
download | src-445e045b0d8959ad639767025a83c8367b5200e7.tar.gz src-445e045b0d8959ad639767025a83c8367b5200e7.zip |
Avoid casts as lvalues.
Notes
Notes:
svn path=/head/; revision=132780
Diffstat (limited to 'sys/netgraph/ng_fec.c')
-rw-r--r-- | sys/netgraph/ng_fec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/ng_fec.c b/sys/netgraph/ng_fec.c index 1e126f2283be..39f80aa63883 100644 --- a/sys/netgraph/ng_fec.c +++ b/sys/netgraph/ng_fec.c @@ -134,6 +134,7 @@ * should be unused, so we can use to hold our node context. */ #define IFP2NG(ifp) (struct ng_node *)(ifp->if_afdata[AF_NETGRAPH]) +#define IFP2NG_SET(ifp, val) ifp->if_afdata[AF_NETGRAPH] = (val); #define FEC_INC(x, y) (x) = (x + 1) % y /* |