From: Fabian Franzen Date: Thu, 13 Apr 2017 10:51:29 +0000 (+0200) Subject: Added braces X-Git-Tag: 2.12~20^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6a19709e65c6aac2085962e989f2429c539c5af5;p=i3%2Fi3status Added braces Added braces to the if-statement as requested. --- 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);