From: Ali H. Fardan Date: Wed, 12 Oct 2016 17:54:45 +0000 (+0300) Subject: get rid of unused variable (silly gcc did not report that error) X-Git-Url: https://git.xinqibao.xyz/slstatus.git/commitdiff_plain/39fa14916b8a7432ebef574c6739cafc0bc2ed2f?ds=inline;hp=-c get rid of unused variable (silly gcc did not report that error) --- 39fa14916b8a7432ebef574c6739cafc0bc2ed2f diff --git a/slstatus.c b/slstatus.c index 6417305..3d9712f 100644 --- a/slstatus.c +++ b/slstatus.c @@ -269,7 +269,6 @@ static char * hostname(void) { char buf[HOST_NAME_MAX]; - FILE *fp; if (gethostname(buf, sizeof(buf)) == -1) { warn(1, "hostname");