author | zecke <zecke> | 2004-03-15 13:25:16 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-15 13:25:16 (UTC) |
commit | 8895f850d5ef5f69ab21b8e4443b69c8c3b86b52 (patch) (side-by-side diff) | |
tree | e8abb92b516355e5b736d2cd164a49a2bda862f9 | |
parent | 14163fd3d9b144c490a8b853ac655be2fa754e61 (diff) | |
download | opie-8895f850d5ef5f69ab21b8e4443b69c8c3b86b52.zip opie-8895f850d5ef5f69ab21b8e4443b69c8c3b86b52.tar.gz opie-8895f850d5ef5f69ab21b8e4443b69c8c3b86b52.tar.bz2 |
Fix compile with gcc2
-rw-r--r-- | libopie2/examples/opienet/miniwellenreiter/miniwellenreiter.cpp | 2 |
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 @@ -152,33 +152,33 @@ public slots: wiface->setChannel( channel++ ); if ( channel == 14 ) channel = 1; } void receivePacket(OPacket* p) { if (!p) { printf( "(empty packet received)\n" ); return; } OWaveLanManagementPacket* beacon = (OWaveLanManagementPacket*) p->child( "802.11 Management" ); if ( beacon ) { OWaveLanManagementSSID* ssid = static_cast<OWaveLanManagementSSID*>( p->child( "802.11 SSID" ) ); - QString essid = ssid ? ssid->ID() : "<unknown>"; + QString essid = ssid ? ssid->ID() : QString::fromLatin1( "<unknown>" ); if ( stations.find( essid ) ) stations[essid]->beacons++; else { printf( "found new network @ channel %d, SSID = '%s'\n", wiface->channel(), (const char*) essid ); stations.insert( essid, new Station( "unknown", wiface->channel(), ((OWaveLanPacket*) beacon->parent())->usesWep() ) ); } return; } OWaveLanDataPacket* data = (OWaveLanDataPacket*) p->child( "802.11 Data" ); if ( data ) { OWaveLanPacket* wlan = (OWaveLanPacket*) p->child( "802.11" ); |