ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/BeOS/ether_beos.cpp
(Generate patch)

Comparing BasiliskII/src/BeOS/ether_beos.cpp (file contents):
Revision 1.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.2 by cebix, 1999-10-03T21:04:18Z

# Line 90 | Line 90 | static NetProtocol *find_protocol(uint16
90  
91  
92   /*
93 + *  Remove all protocols
94 + */
95 +
96 + static void remove_all_protocols(void)
97 + {
98 +        NetProtocol *p;
99 +        while ((p = (NetProtocol *)prot_list.RemoveItem((long)0)) != NULL)
100 +                delete p;
101 + }
102 +
103 +
104 + /*
105   *  Initialization
106   */
107  
# Line 248 | Line 260 | void EtherExit(void)
260                  delete_area(buffer_area);
261  
262                  // Remove all protocols
263 <                NetProtocol *p;
252 <                while ((p = (NetProtocol *)prot_list.RemoveItem((long)0)) != NULL)
253 <                        delete p;
263 >                remove_all_protocols();
264          }
265   }
266  
# Line 261 | Line 271 | void EtherExit(void)
271  
272   void EtherReset(void)
273   {
274 <        // Remove all protocols
265 <        NetProtocol *p;
266 <        while ((p = (NetProtocol *)prot_list.RemoveItem((long)0)) != NULL)
267 <                delete p;
274 >        remove_all_protocols();
275   }
276  
277  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines