summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFabian Franzen <fabian.franzen@tum.de>2017-04-13 12:51:29 +0200
committerFabian Franzen <fabian.franzen@tum.de>2017-04-13 12:51:29 +0200
commit6a19709e65c6aac2085962e989f2429c539c5af5 (patch)
tree4ba510bba0ea098e560aa7130ad3a069fc80290d /src
parentad3fac03c34ddee7108542d292a09e99f879d3db (diff)
Added braces
Added braces to the if-statement as requested.
Diffstat (limited to 'src')
-rw-r--r--src/first_network_device.c3
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);