diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-09-22 12:46:11 -0500 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-09-22 12:46:11 -0500 |
| commit | 51430a3c38c53aeb8d8c4d81a214b54da0eb6d19 (patch) | |
| tree | ebb364fbd1927f778d00e4e8bc098a5c933b634e /include/linux | |
| parent | 7e22da6ad5281a47cda7d2644410188c2debb838 (diff) | |
ISDN: Use <linux/list.h> for list of phone numbers
Simplifies the code which was previously using an open coded
singly linked list.
Also, deleting a phone number during dial-out could easily oops
the kernel before this patch.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/isdn.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/isdn.h b/include/linux/isdn.h index f1f305fe3954..d178bf752006 100644 --- a/include/linux/isdn.h +++ b/include/linux/isdn.h @@ -266,7 +266,7 @@ typedef struct { /* Phone-list-element */ struct isdn_net_phone { - struct isdn_net_phone *next; + struct list_head list; char num[ISDN_MSNLEN]; }; @@ -334,10 +334,10 @@ typedef struct isdn_net_local_s { ulong sqfull_stamp; /* Start-Time of overload */ ulong slavedelay; /* Dynamic bundling delaytime */ int triggercps; /* BogoCPS needed for trigger slave */ - struct isdn_net_phone *phone[2]; /* List of remote-phonenumbers */ + struct list_head phone[2]; /* List of remote-phonenumbers */ /* phone[0] = Incoming Numbers */ /* phone[1] = Outgoing Numbers */ - struct isdn_net_phone *dial; /* Pointer to dialed number */ + int dial; /* # of phone number just dialed */ struct net_device *master; /* Ptr to Master device for slaves */ struct net_device *slave; /* Ptr to Slave device for masters */ struct isdn_net_local_s *next; /* Ptr to next link in bundle */ |
