mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 647150 Fix compile of nsWifiScannerSolaris.cpp r=cjones NPOTB
This commit is contained in:
parent
a10133825a
commit
b8e9f666c0
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user