Added braces

Added braces to the if-statement as requested.
This commit is contained in:
Fabian Franzen 2017-04-13 12:51:29 +02:00
parent ad3fac03c3
commit 6a19709e65
1 changed files with 2 additions and 1 deletions

View File

@ -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);