Permalink
Browse files

Merge pull request #6 from Neal/fix-osx-errors

Fix OS X compile errors
  • Loading branch information...
2 parents 48d00d4 + fc99ef7 commit 894830ee27cc9957ae2dfd09ce5dbd8250204d58 @planetbeing committed Jul 8, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 pwnmetheus2/AppleMobileDevice.cpp
  2. +1 −1 pwnmetheus2/AppleMobileDevice.h
@@ -182,7 +182,7 @@ void AppleMobileDevice::AddDevicesForPID(SInt32 usbPID)
return;
io_object_t usbDevice;
- while(usbDevice = IOIteratorNext(anIterator))
+ while((usbDevice = IOIteratorNext(anIterator)))
{
SInt32 score;
IOUSBDeviceInterface **dev = NULL;
@@ -479,7 +479,7 @@ BOOL AppleMobileDevice::Open(void)
{
int ret;
- if(this->Mode() = kRecoveryMode())
+ if(this->Mode() == kRecoveryMode)
{
/*IOUSBFindInterfaceRequest interfaceRequest;
io_iterator_t iterator;
@@ -53,7 +53,7 @@ class AppleMobileDevice
AppleMobileDevice* next;
#ifdef __APPLE__
- static void AppleMobileDevice::AddDevicesForPID(SInt32 usbPID);
+ static void AddDevicesForPID(SInt32 usbPID);
#endif
static void initializeList();

0 comments on commit 894830e

Please sign in to comment.