spoon

set dwm status
git clone git://git.2f30.org/spoon
Log | Files | Refs | LICENSE

commit 5334192a401aaa7ff17d0f12f46d02764ac4d11c
parent 0fb222e9af1375535203f10940071164dfad2d13
Author: lostd <lostd@2f30.org>
Date:   Wed,  2 Nov 2016 14:55:20 +0100

Unneeded cast

Diffstat:
Mwifi.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/wifi.c b/wifi.c @@ -167,12 +167,10 @@ wifiread(void *arg, char *buf, size_t len) DPRINTF_U(qual->level); if (max_qual->qual != 0) { /* driver provides a quality metric */ - quality = (unsigned) - (((float)qual->qual / max_qual->qual) * 100); + quality = (((float)qual->qual / max_qual->qual) * 100); } else if (max_qual->level != 0) { /* driver provides signal strength (RSSI) */ - quality = (unsigned) - (((float)qual->level / max_qual->level) * 100); + quality = (((float)qual->level / max_qual->level) * 100); } else if (max_qual->level == 0) { /* driver provides absolute dBm values */ level = qual->level - 0x100;