Added braces
Added braces to the if-statement as requested.
This commit is contained in:
parent
ad3fac03c3
commit
6a19709e65
@ -57,8 +57,9 @@ static bool is_virtual(const char *ifname) {
|
||||
|
||||
snprintf(path, sizeof(path), "/sys/class/net/%s", ifname);
|
||||
if ((target = realpath(path, NULL))) {
|
||||
if (BEGINS_WITH(target, "/sys/devices/virtual/"))
|
||||
if (BEGINS_WITH(target, "/sys/devices/virtual/")) {
|
||||
is_virtual = true;
|
||||
}
|
||||
}
|
||||
|
||||
free(target);
|
||||
|
Loading…
Reference in New Issue
Block a user