mirror of
https://github.com/proski/madwifi
synced 2024-11-21 22:11:32 +03:00
Check the return value of system()
This commit is contained in:
parent
edd3220953
commit
0f5e6bf980
@ -776,7 +776,8 @@ list_keys(const char *ifname)
|
|||||||
strcpy(cmd, "iwlist ");
|
strcpy(cmd, "iwlist ");
|
||||||
strcat(cmd, ifname);
|
strcat(cmd, ifname);
|
||||||
strcat(cmd, " key");
|
strcat(cmd, " key");
|
||||||
system(cmd);
|
if (system(cmd) != 0)
|
||||||
|
puts("Failed!");
|
||||||
}
|
}
|
||||||
|
|
||||||
#define IEEE80211_C_BITS \
|
#define IEEE80211_C_BITS \
|
||||||
@ -892,7 +893,8 @@ ieee80211_status(const char *ifname)
|
|||||||
puts("[status not implemented (yet). Spawning iwconfig...]");
|
puts("[status not implemented (yet). Spawning iwconfig...]");
|
||||||
strcpy(cmd, "iwconfig ");
|
strcpy(cmd, "iwconfig ");
|
||||||
strcat(cmd, ifname);
|
strcat(cmd, ifname);
|
||||||
system(cmd);
|
if (system(cmd) != 0)
|
||||||
|
puts("Failed!");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user