]> git.sur5r.net Git - i3/i3status/commitdiff
Added braces 219/head
authorFabian Franzen <fabian.franzen@tum.de>
Thu, 13 Apr 2017 10:51:29 +0000 (12:51 +0200)
committerFabian Franzen <fabian.franzen@tum.de>
Thu, 13 Apr 2017 10:51:29 +0000 (12:51 +0200)
Added braces to the if-statement as requested.

src/first_network_device.c

index 656e457ca54285687ee871c78198006ccf611e90..3f34cf2ed1bc031221389278f1d9ccca62d22f4e 100644 (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);