summaryrefslogtreecommitdiffstats
path: root/term-utils/write.c
diff options
context:
space:
mode:
authorSami Kerola2016-05-06 23:43:26 +0200
committerSami Kerola2016-07-01 21:51:47 +0200
commit1baec22b084af28bac608c27321dae5043ed45a6 (patch)
tree140e36ff2174052f836c099ffce036744b4e2a7c /term-utils/write.c
parentlslocks: add --noinaccessible (diff)
downloadkernel-qcow2-util-linux-1baec22b084af28bac608c27321dae5043ed45a6.tar.gz
kernel-qcow2-util-linux-1baec22b084af28bac608c27321dae5043ed45a6.tar.xz
kernel-qcow2-util-linux-1baec22b084af28bac608c27321dae5043ed45a6.zip
write: remove unused variable
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'term-utils/write.c')
-rw-r--r--term-utils/write.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/term-utils/write.c b/term-utils/write.c
index 7c1523136..0afa46a6d 100644
--- a/term-utils/write.c
+++ b/term-utils/write.c
@@ -73,8 +73,6 @@ static void __attribute__ ((__noreturn__)) done(int);
int term_chk(char *, int *, time_t *, int);
int utmp_chk(char *, char *);
-static gid_t root_access;
-
static void __attribute__ ((__noreturn__)) usage(FILE * out)
{
fputs(USAGE_HEADER, out);
@@ -122,8 +120,6 @@ int main(int argc, char **argv)
usage(stderr);
}
- root_access = !getegid();
-
/* check that sender has write enabled */
if (isatty(fileno(stdin)))
myttyfd = fileno(stdin);