Bug 647150 Fix compile of nsWifiScannerSolaris.cpp r=cjones NPOTB

This commit is contained in:
Ginn Chen 2011-04-02 16:25:54 +08:00
parent a10133825a
commit b8e9f666c0

View File

@ -38,7 +38,6 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include "nsAutoPtr.h"
#include "nsWifiMonitor.h" #include "nsWifiMonitor.h"
#include "nsWifiAccessPoint.h" #include "nsWifiAccessPoint.h"
@ -53,6 +52,8 @@
#define DLADM_STRSIZE 256 #define DLADM_STRSIZE 256
#define DLADM_SECTIONS 3 #define DLADM_SECTIONS 3
using namespace mozilla;
struct val_strength_t { struct val_strength_t {
const char *strength_name; const char *strength_name;
int signal_value; int signal_value;
@ -173,7 +174,7 @@ nsWifiMonitor::DoScan()
nsCOMArray<nsIWifiListener> currentListeners; nsCOMArray<nsIWifiListener> currentListeners;
{ {
nsAutoMonitor mon(mMonitor); MonitorAutoEnter mon(mMonitor);
for (PRUint32 i = 0; i < mListeners.Length(); i++) { for (PRUint32 i = 0; i < mListeners.Length(); i++) {
if (!mListeners[i].mHasSentData || accessPointsChanged) { if (!mListeners[i].mHasSentData || accessPointsChanged) {
@ -222,7 +223,7 @@ nsWifiMonitor::DoScan()
LOG(("waiting on monitor\n")); LOG(("waiting on monitor\n"));
nsAutoMonitor mon(mMonitor); MonitorAutoEnter mon(mMonitor);
mon.Wait(PR_SecondsToInterval(60)); mon.Wait(PR_SecondsToInterval(60));
} }