From ea89e607c7d5dba5d8462089659ded75ffc4bf2d Mon Sep 17 00:00:00 2001 From: Rene Rebe Date: Thu, 20 May 2004 09:09:41 +0000 Subject: [PATCH] Rene Rebe: fixed kismet for gcc-3.4 [2004051213580810689] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3023 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/valentin/kismet/gcc34.patch | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 package/valentin/kismet/gcc34.patch diff --git a/package/valentin/kismet/gcc34.patch b/package/valentin/kismet/gcc34.patch new file mode 100644 index 000000000..5c033fcf1 --- /dev/null +++ b/package/valentin/kismet/gcc34.patch @@ -0,0 +1,49 @@ + +The usual gcc-3.4 fixes + some unusal ones ... + + - Rene Rebe + +diff -ur kismet-3.0.1/kismet_drone.cc kismet-3.0.1-fixed/kismet_drone.cc +--- kismet-3.0.1/kismet_drone.cc 2003-07-22 01:34:23.000000000 +0200 ++++ kismet-3.0.1-fixed/kismet_drone.cc 2004-05-10 13:16:48.194992328 +0200 +@@ -72,7 +72,7 @@ + pak.flags = CAPFLAG_NONE; + pak.datalen = 1; + pak.data = (uint8_t *) malloc(1); +- (int8_t) pak.data[0] = CAPCMD_DIE; ++ pak.data[0] = (uint8_t)CAPCMD_DIE; + + for (unsigned int x = 0; x < packet_sources.size(); x++) { + if (packet_sources[x]->alive) { +diff -ur kismet-3.0.1/kismet_server.cc kismet-3.0.1-fixed/kismet_server.cc +--- kismet-3.0.1/kismet_server.cc 2003-07-31 16:26:59.000000000 +0200 ++++ kismet-3.0.1-fixed/kismet_server.cc 2004-05-10 13:17:22.243816120 +0200 +@@ -259,7 +259,7 @@ + pak.flags = CAPFLAG_NONE; + pak.datalen = 1; + pak.data = (uint8_t *) malloc(1); +- (int8_t) pak.data[0] = CAPCMD_DIE; ++ pak.data[0] = (uint8_t) CAPCMD_DIE; + + for (unsigned int x = 0; x < packet_sources.size(); x++) { + if (packet_sources[x]->alive) { +diff -ur kismet-3.0.1/packet.h kismet-3.0.1-fixed/packet.h +--- kismet-3.0.1/packet.h 2003-07-31 16:26:59.000000000 +0200 ++++ kismet-3.0.1-fixed/packet.h 2004-05-10 13:08:31.587776568 +0200 +@@ -548,7 +548,7 @@ + // This isn't quite like STL iterators, because I'm too damned lazy to deal with all + // the nasty STL hoop-jumping. This does provide a somewhat-stl-ish interface to + // iterating through the singleton and masked maps +- friend class iterator { ++ class iterator { + friend class macmap; + + public: +@@ -641,6 +641,7 @@ + int vector_itr; + macmap *owner; + }; ++ friend class iterator; + + iterator begin() { + iterator ret(this);