diff options
Diffstat (limited to 'net-wireless/kwavecontrol')
-rw-r--r-- | net-wireless/kwavecontrol/ChangeLog | 8 | ||||
-rw-r--r-- | net-wireless/kwavecontrol/files/kwavecontrol-0.3-gentoo.diff | 71 | ||||
-rw-r--r-- | net-wireless/kwavecontrol/kwavecontrol-0.3.ebuild | 5 |
3 files changed, 80 insertions, 4 deletions
diff --git a/net-wireless/kwavecontrol/ChangeLog b/net-wireless/kwavecontrol/ChangeLog index 294bff5f84e1..9801403db76c 100644 --- a/net-wireless/kwavecontrol/ChangeLog +++ b/net-wireless/kwavecontrol/ChangeLog @@ -1,10 +1,14 @@ # ChangeLog for net-wireless/kwavecontrol # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/kwavecontrol/ChangeLog,v 1.4 2003/02/12 08:45:37 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kwavecontrol/ChangeLog,v 1.5 2003/02/12 14:09:31 hannes Exp $ + + 12 Feb 2003; Hannes Mehnert <hannes@gentoo.org> kwavecontrol-0.3.ebuild: + added patch to initialize variables, thanks to Sebastian Kratzert for this + patch *kwavecontrol-0.3 (09 Feb 2003) - 09 Feb 2003; Hannes Mehnert <hannes@gentoo.org> kwavecontrol-0.3.ebuild, + 09 Feb 2003; Hannes Mehnert <hannes@gentoo.org> kwavecontrol-0.3.ebuild: version bump 02 Feb 2003; Hannes Mehnert <hannes@gentoo.org> kwavecontrol-0.2.ebuild: diff --git a/net-wireless/kwavecontrol/files/kwavecontrol-0.3-gentoo.diff b/net-wireless/kwavecontrol/files/kwavecontrol-0.3-gentoo.diff new file mode 100644 index 000000000000..359cbd5da0d9 --- /dev/null +++ b/net-wireless/kwavecontrol/files/kwavecontrol-0.3-gentoo.diff @@ -0,0 +1,71 @@ +--- kwavecontrol/wcard.cpp 2003-02-06 22:25:46.000000000 +0000 ++++ kwavecontrol/wcard.cpp 2003-02-09 18:42:59.000000000 +0000 +@@ -35,7 +35,9 @@ + device = (char*)malloc(20); + + strcpy(device, dev); +- ++ ++ range = 0L; ++ stats = 0L; + stats = (iwstat*)malloc(sizeof(iwstat)); + range = (iwrange*)malloc(sizeof(iwrange)); + +@@ -74,7 +76,8 @@ + if(ioctl(ethFD , SIOCGIWSTATS, &wrq) < 0) + return -1; + +- int q = (int)stats->qual.qual; ++ int q = 0; ++ q = (int)stats->qual.qual; + int s = (int)stats->qual.level; + int n = (int)stats->qual.noise; + +@@ -86,9 +89,10 @@ + int maxS = (int)range->max_qual.level; + int maxN = (int)range->max_qual.noise; + +- int avgQ = (int)range->avg_qual.qual; ++ int avgQ = 0; ++ avgQ = (int)range->avg_qual.qual; + +- float zw; ++ float zw=0.0F; + + zw = 100*((float)q / (float)maxQ); + link = (int)zw; +--- kwavecontrol/wwidget.cpp 2003-02-06 22:20:35.000000000 +0000 ++++ kwavecontrol/wwidget.cpp 2003-02-09 18:07:34.000000000 +0000 +@@ -194,10 +194,10 @@ + { + if(card->isWave()) + { +- int numFreq; +- double freq; +- int numChannel; +- int channel; ++ int numFreq=0; ++ double freq=0; ++ int numChannel=0; ++ int channel=0; + if( card->getChannel(numFreq, freq, eh, numChannel, channel) < 0 ) + { + frequencyLabel->setValue(i18n ("error")); +@@ -226,7 +226,7 @@ + { + if(card->isWave()) + { +- int index; ++ int index=0; + card->getBitRate(bitRates, index); + bitrateSelection->clear(); + for( int i=0; i < bitRates->num; i++) +@@ -235,7 +235,7 @@ + } + bitrateSelection->setCurrentItem(index); + +- int sens, sensRange; ++ int sens=0; int sensRange=0; + card->getSensitivity(sens, sensRange); + + sensitivitySelection->clear(); diff --git a/net-wireless/kwavecontrol/kwavecontrol-0.3.ebuild b/net-wireless/kwavecontrol/kwavecontrol-0.3.ebuild index 2b249100f0e1..b0188069a42b 100644 --- a/net-wireless/kwavecontrol/kwavecontrol-0.3.ebuild +++ b/net-wireless/kwavecontrol/kwavecontrol-0.3.ebuild @@ -1,10 +1,11 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/kwavecontrol/kwavecontrol-0.3.ebuild,v 1.1 2003/02/09 13:47:23 hannes Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kwavecontrol/kwavecontrol-0.3.ebuild,v 1.2 2003/02/12 14:09:31 hannes Exp $ -newdepend "net-wireless/wireless-tools" inherit kde-base need-kde 3 +newdepend "net-wireless/wireless-tools" +PATCHES="${FILESDIR}/${P}-gentoo.diff" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" HOMEPAGE="http://kwc.progeln.de/" LICENSE="GPL-2" |