summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-01 11:53:25 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-01 13:36:43 -0500
commit1bf7dd6e7d36e997c7283045c2760d14e02904fd (patch)
tree3592937017a8309479d243152bc68305452cc487 /src/network
parentef7532531942d59f81bfbd8a8f923f17e4827952 (diff)
networkctl: remove unused variable
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkctl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index cc3ea85e8c..f85058c272 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -900,7 +900,6 @@ static int link_lldp_status(int argc, char *argv[], void *userdata) {
usec_t time, until, ttl;
uint32_t capability;
- char buf[LINE_MAX];
int i, r, c, j;
size_t ll;
char **s;
@@ -955,15 +954,11 @@ static int link_lldp_status(int argc, char *argv[], void *userdata) {
continue;
if (streq(a, "_Chassis")) {
-
- memzero(buf, LINE_MAX);
-
chassis = strdup(b);
if (!chassis)
return -ENOMEM;
} else if (streq(a, "_Port")) {
-
port = strdup(b);
if (!port)
return -ENOMEM;