Xinqi Bao's Git
projects
/
slstatus.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
4339c83
)
get rid of unused variable (silly gcc did not report that error)
author
Ali H. Fardan <
[email protected]
>
Wed, 12 Oct 2016 17:54:45 +0000
(20:54 +0300)
committer
Ali H. Fardan <
[email protected]
>
Wed, 12 Oct 2016 17:54:45 +0000
(20:54 +0300)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index
6417305
..
3d9712f
100644
(file)
--- a/
slstatus.c
+++ b/
slstatus.c
@@
-269,7
+269,6
@@
static char *
hostname(void)
{
char buf[HOST_NAME_MAX];
hostname(void)
{
char buf[HOST_NAME_MAX];
- FILE *fp;
if (gethostname(buf, sizeof(buf)) == -1) {
warn(1, "hostname");
if (gethostname(buf, sizeof(buf)) == -1) {
warn(1, "hostname");