net.h: don't use the reserved name __unused
authorJeroen Hofstee <jeroen@myspectrum.nl>
Sat, 10 Aug 2013 14:52:47 +0000 (16:52 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 19 Aug 2013 17:34:20 +0000 (12:34 -0500)
The __* keywords are reserved. On FreeBSD __unused evaluates
to the attribute unused, causing a compilation failure.
Just use unused instead.

Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
cc: joe.hershberger@gmail.com

include/net.h

index 7673470046f596263e170d0facbdffba74540299..5aedc17aa6dc36ea6600d2c24e3d011c9c140226 100644 (file)
@@ -357,7 +357,7 @@ struct icmp_hdr {
                } echo;
                ulong   gateway;
                struct {
-                       ushort  __unused;
+                       ushort  unused;
                        ushort  mtu;
                } frag;
                uchar data[0];