member, not static

This commit is contained in:
Glenn Maynard
2005-12-10 02:28:44 +00:00
parent dc1d91fa3e
commit d6d6965e71
2 changed files with 4 additions and 3 deletions
@@ -103,7 +103,6 @@ static void GetFileList( const CString &sPath, vector<CString> &out )
bool MemoryCardDriverThreaded_Linux::USBStorageDevicesChanged()
{
static CString sLastDevices = "";
CString sThisDevices;
/* If a device is removed and reinserted, the inode of the /sys/block entry
@@ -122,8 +121,8 @@ bool MemoryCardDriverThreaded_Linux::USBStorageDevicesChanged()
sThisDevices += ssprintf( "%i,", (int) buf.st_ino );
}
bool bChanged = sThisDevices != sLastDevices;
sLastDevices = sThisDevices;
bool bChanged = sThisDevices != m_sLastDevices;
m_sLastDevices = sThisDevices;
if( bChanged )
LOG->Trace( "Change in USB storage devices detected." );
return bChanged;
@@ -19,6 +19,8 @@ protected:
void GetUSBStorageDevices( vector<UsbStorageDevice>& vDevicesOut );
bool USBStorageDevicesChanged();
bool TestWrite( UsbStorageDevice* pDevice );
CString m_sLastDevices;
};
#ifdef ARCH_MEMORY_CARD_DRIVER