From: Roy Marples Date: Tue, 13 Jun 2017 18:42:03 +0000 (+0100) Subject: llen is unused here. X-Git-Tag: v7.0.0-rc2~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5db66eef9d72675b3d989f239d9cc7ccca297c57;p=thirdparty%2Fdhcpcd.git llen is unused here. --- diff --git a/src/common.c b/src/common.c index 4a5c6ec7..861cc62e 100644 --- a/src/common.c +++ b/src/common.c @@ -179,7 +179,6 @@ read_hwaddr_aton(uint8_t **data, const char *path) FILE *fp; char *buf; size_t buf_len, len; - ssize_t llen; if ((fp = fopen(path, "r")) == NULL) return 0; @@ -187,7 +186,7 @@ read_hwaddr_aton(uint8_t **data, const char *path) buf = NULL; buf_len = len = 0; *data = NULL; - while ((llen = getline(&buf, &buf_len, fp)) != -1) { + while (getline(&buf, &buf_len, fp) != -1) { if ((len = hwaddr_aton(NULL, buf)) != 0) { if (buf_len >= len) *data = (uint8_t *)buf;