Search Linux Wireless

Re: Patch to get iw building on Fedora 8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/21/2010 12:49 PM, Andreas Schwab wrote:
Ben Greear<greearb-my8/4N5VtI7c+919tysfdA@xxxxxxxxxxxxxxxx>  writes:

I need this in order to get iw to build on Fedora 8.

[greearb@fs2 iw]$ git diff
diff --git a/bitrate.c b/bitrate.c
index 8de8839..9b6defc 100644
--- a/bitrate.c
+++ b/bitrate.c
@@ -1,4 +1,6 @@
  #include<errno.h>
+#define  __USE_ISOC99

This is wrong.  You must never define internal glibc macros.

How about this then?

diff --git a/bitrate.c b/bitrate.c
index 8de8839..f0d513f 100644
--- a/bitrate.c
+++ b/bitrate.c
@@ -70,7 +70,7 @@ static int handle_bitrates(struct nl80211_state *state,
 #endif
                else switch (parser_state) {
                case S_LEGACY:
-                       tmpf = strtof(argv[i], &end);
+                       tmpf = strtod(argv[i], &end);
                        if (*end != '\0')
                                return 1;
                        if (tmpf < 1 || tmpf > 255 * 2)

Seems you don't have to do anything clever to get strtod to work,
and I assume it should cast just fine.

Thanks,
Ben


Andreas.



--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux