Rename 'struct private' to 'struct ng_xxx_private' to allow gdb

to disambiguate when debugging.
This commit is contained in:
Archie Cobbs 1999-11-19 04:25:39 +00:00
parent 5460e55fc9
commit 3a58352eb0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53393
2 changed files with 4 additions and 4 deletions

View File

@ -67,11 +67,11 @@
#define HDLC_UI 0x03
/* Node private data */
struct private {
struct ng_UI_private {
hook_p downlink;
hook_p uplink;
};
typedef struct private *priv_p;
typedef struct ng_UI_private *priv_p;
/* Netgraph node methods */
static ng_constructor_t ng_UI_constructor;

View File

@ -161,13 +161,13 @@ const static struct iffam gFamilies[] = {
#define NUM_FAMILIES (sizeof(gFamilies) / sizeof(*gFamilies))
/* Node private data */
struct private {
struct ng_iface_private {
struct ifnet *ifp; /* This interface */
node_p node; /* Our netgraph node */
hook_p hooks[NUM_FAMILIES]; /* Hook for each address family */
struct private *next; /* When hung on the free list */
};
typedef struct private *priv_p;
typedef struct ng_iface_private *priv_p;
/* Interface methods */
static void ng_iface_start(struct ifnet *ifp);