diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2026-02-22 15:08:10 +0100 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2026-02-22 15:08:10 +0100 |
| commit | e3cae83a947f5724ec907643221bb0ea040b04e6 (patch) | |
| tree | ee51f2eba1b754352722e02735ef0d9f3f9378a9 /slstatus/components/wifi.c | |
| parent | chore(dmenu): sync with upstream (diff) | |
| download | suckless-setup-e3cae83a947f5724ec907643221bb0ea040b04e6.tar.gz | |
chore(slstatus): sync with upstream
Commits:
- wifi: always retry ioctl for ifindex (4f61bbb)
- fix buffer overflow in battery state parsing (98769df)
Diffstat (limited to '')
| -rw-r--r-- | slstatus/components/wifi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/slstatus/components/wifi.c b/slstatus/components/wifi.c index 23af201..8b33baa 100644 --- a/slstatus/components/wifi.c +++ b/slstatus/components/wifi.c @@ -110,10 +110,10 @@ } if (strcmp(ifr.ifr_name, interface) != 0) { strcpy(ifr.ifr_name, interface); - if (ioctl(ifsock, SIOCGIFINDEX, &ifr) != 0) { - warn("ioctl 'SIOCGIFINDEX':"); - return -1; - } + } + if (ioctl(ifsock, SIOCGIFINDEX, &ifr) != 0) { + warn("ioctl 'SIOCGIFINDEX':"); + return -1; } return ifr.ifr_ifindex; } |
