From 6a19709e65c6aac2085962e989f2429c539c5af5 Mon Sep 17 00:00:00 2001 From: Fabian Franzen Date: Thu, 13 Apr 2017 12:51:29 +0200 Subject: Added braces Added braces to the if-statement as requested. --- src/first_network_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/first_network_device.c') 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); -- cgit v1.2.3