From 1baec22b084af28bac608c27321dae5043ed45a6 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Fri, 6 May 2016 22:43:26 +0100 Subject: write: remove unused variable Signed-off-by: Sami Kerola --- term-utils/write.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'term-utils/write.c') 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); -- cgit v1.2.3-55-g7522