diff options
author | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
commit | d93fbc99166053b75c2eeb69b5cb603cfaf79ec0 (patch) | |
tree | a4f130be4544ce7cfe4afa8c93f996b871433cb8 /sys/netgraph/netgraph.h | |
parent | e814d2a0db522b0f163eef55a56d05aa226951f3 (diff) | |
download | FreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.zip FreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.tar.gz |
Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.
Suggested by: phk
Reviewed by: phk
Approved by: mdodd
Diffstat (limited to 'sys/netgraph/netgraph.h')
-rw-r--r-- | sys/netgraph/netgraph.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h index 7b04409..89e955f 100644 --- a/sys/netgraph/netgraph.h +++ b/sys/netgraph/netgraph.h @@ -61,7 +61,7 @@ struct ng_hook { int refs; /* dont actually free this till 0 */ struct ng_hook *peer; /* the other end of this link */ struct ng_node *node; /* The node this hook is attached to */ - LIST_ENTRY(ng_hook) hooks; /* linked list of all hooks on node */ + LIST_ENTRY(struct ng_hook) hooks; /* linked list of all hooks on node */ }; typedef struct ng_hook *hook_p; @@ -81,9 +81,9 @@ struct ng_node { int colour; /* for graph colouring algorithms */ void *private; /* node type dependant node ID */ ng_ID_t ID; /* Unique per node */ - LIST_HEAD(hooks, ng_hook) hooks; /* linked list of node hooks */ - LIST_ENTRY(ng_node) nodes; /* linked list of all nodes */ - LIST_ENTRY(ng_node) idnodes; /* ID hash collision list */ + LIST_HEAD(hooks, struct ng_hook) hooks; /* linked list of node hooks */ + LIST_ENTRY(struct ng_node) nodes; /* linked list of all nodes */ + LIST_ENTRY(struct ng_node) idnodes; /* ID hash collision list */ }; typedef struct ng_node *node_p; @@ -177,7 +177,7 @@ struct ng_type { const struct ng_cmdlist *cmdlist; /* commands we can convert */ /* R/W data private to the base netgraph code DON'T TOUCH! */ - LIST_ENTRY(ng_type) types; /* linked list of all types */ + LIST_ENTRY(struct ng_type) types; /* linked list of all types */ int refs; /* number of instances */ }; |