Don't open a socket, since we don't use it.
Also removed fSocket from the class.
This commit is contained in:
@@ -98,7 +98,6 @@ EthernetSettingsView::EthernetSettingsView()
|
|||||||
{
|
{
|
||||||
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||||
|
|
||||||
fSocket = socket(AF_INET, SOCK_DGRAM, 0);
|
|
||||||
_GatherInterfaces();
|
_GatherInterfaces();
|
||||||
|
|
||||||
// build the GUI
|
// build the GUI
|
||||||
@@ -216,7 +215,6 @@ EthernetSettingsView::EthernetSettingsView()
|
|||||||
|
|
||||||
EthernetSettingsView::~EthernetSettingsView()
|
EthernetSettingsView::~EthernetSettingsView()
|
||||||
{
|
{
|
||||||
close(fSocket);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ private:
|
|||||||
Settings* fCurrentSettings;
|
Settings* fCurrentSettings;
|
||||||
|
|
||||||
int32 fStatus;
|
int32 fStatus;
|
||||||
int fSocket;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* ETHERNET_SETTINGS_VIEW_H */
|
#endif /* ETHERNET_SETTINGS_VIEW_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user