diff options
author | Fabian Franzen <fabian.franzen@tum.de> | 2017-04-13 12:51:29 +0200 |
---|---|---|
committer | Fabian Franzen <fabian.franzen@tum.de> | 2017-04-13 12:51:29 +0200 |
commit | 6a19709e65c6aac2085962e989f2429c539c5af5 (patch) | |
tree | 4ba510bba0ea098e560aa7130ad3a069fc80290d | |
parent | ad3fac03c34ddee7108542d292a09e99f879d3db (diff) |
Added braces
Added braces to the if-statement as requested.
-rw-r--r-- | src/first_network_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/first_network_device.c b/src/first_network_device.c index 656e457..3f34cf2 100644 --- a/src/first_network_device.c +++ b/src/first_network_device.c @@ -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); |