summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/usb/usbrun.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/usb/usbrun.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/usb/usbrun.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/networksettings2/usb/usbrun.cpp b/noncore/settings/networksettings2/usb/usbrun.cpp
index 4ce6721..beacd7b 100644
--- a/noncore/settings/networksettings2/usb/usbrun.cpp
+++ b/noncore/settings/networksettings2/usb/usbrun.cpp
@@ -66,25 +66,25 @@ void USBRun::detectState( NodeCollection * NC ) {
66 fprintf( stderr, "Released(OFF)\n" ); 66 fprintf( stderr, "Released(OFF)\n" );
67 // proper type, and Not UP -> free 67 // proper type, and Not UP -> free
68 NC->setCurrentState( Off ); 68 NC->setCurrentState( Off );
69 return; 69 return;
70 } 70 }
71 } 71 }
72 // no free found 72 // no free found
73 fprintf( stderr, "UNA\n" ); 73 fprintf( stderr, "UNA\n" );
74 74
75 NC->setCurrentState( Unavailable ); 75 NC->setCurrentState( Unavailable );
76} 76}
77 77
78bool USBRun::setState( NodeCollection * NC, Action_t A ) { 78bool USBRun::setState( NodeCollection * NC, Action_t A, bool ) {
79 79
80 // we only handle activate and deactivate 80 // we only handle activate and deactivate
81 switch( A ) { 81 switch( A ) {
82 case Activate : 82 case Activate :
83 { 83 {
84 if( NC->currentState() != Off ) { 84 if( NC->currentState() != Off ) {
85 return 0; 85 return 0;
86 } 86 }
87 InterfaceInfo * N = getInterface(); 87 InterfaceInfo * N = getInterface();
88 if( ! N ) { 88 if( ! N ) {
89 // no interface available 89 // no interface available
90 NC->setCurrentState( Unavailable ); 90 NC->setCurrentState( Unavailable );