From 51430a3c38c53aeb8d8c4d81a214b54da0eb6d19 Mon Sep 17 00:00:00 2001 From: Kai Germaschewski Date: Sun, 22 Sep 2002 12:46:11 -0500 Subject: ISDN: Use 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. --- include/linux/isdn.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/linux') 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 */ -- cgit v1.2.3