summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_message.h
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-10-22 07:35:05 +0000
committerharti <harti@FreeBSD.org>2003-10-22 07:35:05 +0000
commitb9a34c0f9880d1ac69e19d8e003929de3d78be17 (patch)
tree0f50db4a1b35b14b0375cb921b3b04d6a2e9dae8 /sys/netgraph/ng_message.h
parent2f7e12f3f8afa5e9ca39e199b3c60dabdbb74202 (diff)
downloadFreeBSD-src-b9a34c0f9880d1ac69e19d8e003929de3d78be17.zip
FreeBSD-src-b9a34c0f9880d1ac69e19d8e003929de3d78be17.tar.gz
Remove a gcc-ism: declaring a variable array at the end of a structure
as [0] and replace it with the ISO way of writing []. This has caused warnings with WARNS=6.
Diffstat (limited to 'sys/netgraph/ng_message.h')
-rw-r--r--sys/netgraph/ng_message.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netgraph/ng_message.h b/sys/netgraph/ng_message.h
index ea6b35f..5ae4b44 100644
--- a/sys/netgraph/ng_message.h
+++ b/sys/netgraph/ng_message.h
@@ -63,7 +63,7 @@ struct ng_mesg {
u_int32_t cmd; /* command identifier */
u_char cmdstr[NG_CMDSTRLEN+1]; /* cmd string + \0 */
} header;
- char data[0]; /* placeholder for actual data */
+ char data[]; /* placeholder for actual data */
};
/* this command is guaranteed to not alter data or'd into the command */
@@ -236,7 +236,7 @@ struct linkinfo {
struct hooklist {
struct nodeinfo nodeinfo; /* node information */
- struct linkinfo link[0]; /* info about each hook */
+ struct linkinfo link[]; /* info about each hook */
};
/* Keep this in sync with the above structure definition */
@@ -249,7 +249,7 @@ struct hooklist {
/* Structure used for NGM_LISTNAMES/NGM_LISTNODES */
struct namelist {
u_int32_t numnames;
- struct nodeinfo nodeinfo[0];
+ struct nodeinfo nodeinfo[];
};
/* Keep this in sync with the above structure definition */
@@ -274,7 +274,7 @@ struct typeinfo {
struct typelist {
u_int32_t numtypes;
- struct typeinfo typeinfo[0];
+ struct typeinfo typeinfo[];
};
/* Keep this in sync with the above structure definition */
OpenPOWER on IntegriCloud