diff options
| author | Fabian Franzen | 2017-04-13 12:51:29 +0200 | 
|---|---|---|
| committer | Fabian Franzen | 2017-04-13 12:51:29 +0200 | 
| commit | 6a19709e65c6aac2085962e989f2429c539c5af5 (patch) | |
| tree | 4ba510bba0ea098e560aa7130ad3a069fc80290d | |
| parent | Fix memory leak/Use BEGINS_WITH macro (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); | 
