summaryrefslogtreecommitdiff
authorzecke <zecke>2004-03-15 13:25:16 (UTC)
committer zecke <zecke>2004-03-15 13:25:16 (UTC)
commit8895f850d5ef5f69ab21b8e4443b69c8c3b86b52 (patch) (unidiff)
treee8abb92b516355e5b736d2cd164a49a2bda862f9
parent14163fd3d9b144c490a8b853ac655be2fa754e61 (diff)
downloadopie-8895f850d5ef5f69ab21b8e4443b69c8c3b86b52.zip
opie-8895f850d5ef5f69ab21b8e4443b69c8c3b86b52.tar.gz
opie-8895f850d5ef5f69ab21b8e4443b69c8c3b86b52.tar.bz2
Fix compile with gcc2
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/examples/opienet/miniwellenreiter/miniwellenreiter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/examples/opienet/miniwellenreiter/miniwellenreiter.cpp b/libopie2/examples/opienet/miniwellenreiter/miniwellenreiter.cpp
index f1966c1..ebd3b5f 100644
--- a/libopie2/examples/opienet/miniwellenreiter/miniwellenreiter.cpp
+++ b/libopie2/examples/opienet/miniwellenreiter/miniwellenreiter.cpp
@@ -160,17 +160,17 @@ public slots:
160 printf( "(empty packet received)\n" ); 160 printf( "(empty packet received)\n" );
161 return; 161 return;
162 } 162 }
163 163
164 OWaveLanManagementPacket* beacon = (OWaveLanManagementPacket*) p->child( "802.11 Management" ); 164 OWaveLanManagementPacket* beacon = (OWaveLanManagementPacket*) p->child( "802.11 Management" );
165 if ( beacon ) 165 if ( beacon )
166 { 166 {
167 OWaveLanManagementSSID* ssid = static_cast<OWaveLanManagementSSID*>( p->child( "802.11 SSID" ) ); 167 OWaveLanManagementSSID* ssid = static_cast<OWaveLanManagementSSID*>( p->child( "802.11 SSID" ) );
168 QString essid = ssid ? ssid->ID() : "<unknown>"; 168 QString essid = ssid ? ssid->ID() : QString::fromLatin1( "<unknown>" );
169 169
170 if ( stations.find( essid ) ) 170 if ( stations.find( essid ) )
171 stations[essid]->beacons++; 171 stations[essid]->beacons++;
172 else 172 else
173 { 173 {
174 printf( "found new network @ channel %d, SSID = '%s'\n", wiface->channel(), (const char*) essid ); 174 printf( "found new network @ channel %d, SSID = '%s'\n", wiface->channel(), (const char*) essid );
175 stations.insert( essid, new Station( "unknown", wiface->channel(), 175 stations.insert( essid, new Station( "unknown", wiface->channel(),
176 ((OWaveLanPacket*) beacon->parent())->usesWep() ) ); 176 ((OWaveLanPacket*) beacon->parent())->usesWep() ) );