summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/atm
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-03-03 18:47:33 +0000
committered <ed@FreeBSD.org>2009-03-03 18:47:33 +0000
commit7cfe6a40d7e0a1e79b1ceb60cfbe18d0b9f2fc32 (patch)
tree3edcd3e9595b3c05dc65d88431472e5852901461 /sys/netgraph/atm
parenta44f90cda61e735ac2de68fd726ac81ee2c45757 (diff)
downloadFreeBSD-src-7cfe6a40d7e0a1e79b1ceb60cfbe18d0b9f2fc32.zip
FreeBSD-src-7cfe6a40d7e0a1e79b1ceb60cfbe18d0b9f2fc32.tar.gz
Make Netgraph compile with Clang.
Clang disallows structs with variable length arrays to be nested inside other structs, because this is in violation with ISO C99. Even though we can keep bugging the LLVM folks about this issue, we'd better just fix our code to not do this. This code seems to be the only code in the entire source tree that does this. I haven't tested this patch by using the kernel modules in question, but Diane Bruce and I have compared disassembled versions of these kernel modules. We would have expected them to be exactly the same, but due to randomness in the register allocator and reordering of instructions, there were some minor differences. Approved by: julian
Diffstat (limited to 'sys/netgraph/atm')
-rw-r--r--sys/netgraph/atm/ng_ccatm.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/netgraph/atm/ng_ccatm.h b/sys/netgraph/atm/ng_ccatm.h
index 9e1eb66..f85c128 100644
--- a/sys/netgraph/atm/ng_ccatm.h
+++ b/sys/netgraph/atm/ng_ccatm.h
@@ -166,7 +166,6 @@ struct ngm_ccatm_portlist {
struct ccatm_op {
uint32_t op; /* request code */
- u_char data[];
};
#endif
OpenPOWER on IntegriCloud