aboutsummaryrefslogtreecommitdiff
path: root/lladdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lladdr.c')
-rw-r--r--lladdr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lladdr.c b/lladdr.c
index d6fb0a6..1f02ba4 100644
--- a/lladdr.c
+++ b/lladdr.c
@@ -16,6 +16,7 @@ int set_lladdr(const char *ifname, const char *lladdr,
const struct env_set *es)
{
char cmd[256];
+ int r;
if (!ifname || !lladdr)
return -1;
@@ -51,7 +52,7 @@ int set_lladdr(const char *ifname, const char *lladdr,
return -1;
#endif
- int r = system_check (cmd, es, M_WARN, "ERROR: Unable to set link layer address.");
+ r = system_check (cmd, es, M_WARN, "ERROR: Unable to set link layer address.");
if (r)
msg (M_INFO, "TUN/TAP link layer address set to %s", lladdr);
return r;