summaryrefslogtreecommitdiff
authormax <max>2003-02-12 20:49:39 (UTC)
committer max <max>2003-02-12 20:49:39 (UTC)
commitdc326e87d4a958ee49210fff9d03967f8a183242 (patch) (side-by-side diff)
tree618a8c9757ad4ed6108963ba06dedd30d8c41588
parent421f7d634a3b5d343834cfa1410d674ff78cf5b8 (diff)
downloadopie-dc326e87d4a958ee49210fff9d03967f8a183242.zip
opie-dc326e87d4a958ee49210fff9d03967f8a183242.tar.gz
opie-dc326e87d4a958ee49210fff9d03967f8a183242.tar.bz2
fix const char
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc
index cf50d8c..626b28c 100644
--- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc
+++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc
@@ -60,7 +60,7 @@ int card_into_monitormode (pcap_t **orighandle, const char *device, int cardtype
struct iwreq wrq;
wrq.u.mode = IW_MODE_MONITOR;
- if(iw_set_ext(skfd,device,SIOCSIWMODE,&wrq)<0)
+ if(iw_set_ext(skfd,(char *) device,SIOCSIWMODE,&wrq)<0)
{
wl_logerr("Could not set hostap card %s to raw mode, check cardtype", device);
return 0;
@@ -103,7 +103,7 @@ int card_check_rfmon_datalink (const char *device)
{
int datalinktype=0;
pcap_t *phandle;
- phandle = pcap_open_live(device, 65,0,0,NULL);
+ phandle = pcap_open_live((char *)device, 65,0,0,NULL);
datalinktype = pcap_datalink (phandle);
pcap_close(phandle);
@@ -216,7 +216,7 @@ int card_set_channel (const char *device, int channel, int cardtype)
struct iwreq wrq;
iw_float2freq((double) channel, &wrq.u.freq);
- if(iw_set_ext(skfd,device,SIOCSIWFREQ,&wrq)<0)
+ if(iw_set_ext(skfd,(char *) device,SIOCSIWFREQ,&wrq)<0)
{
wl_logerr("Could not set hostap card %s to channel %d", device, channel);
return 0;
@@ -269,7 +269,7 @@ int iw_get_range_info(int skfd, const char * ifname, iw_range * range)
wrq2.u.data.length = sizeof(buffer);
wrq2.u.data.flags = 0;
- if(iw_get_ext(skfd, ifname, SIOCGIWRANGE, &wrq2) < 0)
+ if(iw_get_ext(skfd, (char *)ifname, SIOCGIWRANGE, &wrq2) < 0)
{
wl_logerr("Could not get the range from the interface");
return(-1);