Commit d6b8ddd8 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix typo.

parent c90a2172
...@@ -556,7 +556,6 @@ kernel_interface_operational(const char *ifname, int ifindex) ...@@ -556,7 +556,6 @@ kernel_interface_operational(const char *ifname, int ifindex)
int rc; int rc;
int flags = link_detect ? (IFF_UP | IFF_RUNNING) : IFF_UP; int flags = link_detect ? (IFF_UP | IFF_RUNNING) : IFF_UP;
memset(&req, 0, sizeof(req));
memset(&req, 0, sizeof(req)); memset(&req, 0, sizeof(req));
strncpy(req.ifr_name, ifname, sizeof(req.ifr_name)); strncpy(req.ifr_name, ifname, sizeof(req.ifr_name));
rc = ioctl(dgram_socket, SIOCGIFFLAGS, &req); rc = ioctl(dgram_socket, SIOCGIFFLAGS, &req);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment