projects
/
monky
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Getting rid of goto usage throughout code.
[monky]
/
src
/
openbsd.c
diff --git
a/src/openbsd.c
b/src/openbsd.c
index
2655992
..
1a87e87
100644
(file)
--- a/
src/openbsd.c
+++ b/
src/openbsd.c
@@
-628,7
+628,8
@@
void update_wifi_stats()
bzero(&ifmr, sizeof(ifmr));
strlcpy(ifmr.ifm_name, ifa->ifa_name, IFNAMSIZ);
if (ioctl(s, SIOCGIFMEDIA, (caddr_t) &ifmr) < 0) {
- goto cleanup;
+ close(s);
+ return;
}
/* We can monitor only wireless interfaces