From: Sami Kerola Date: Fri, 6 May 2016 21:43:26 +0000 (+0100) Subject: write: remove unused variable X-Git-Tag: v2.29-rc1~152^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1baec22b084af28bac608c27321dae5043ed45a6;p=thirdparty%2Futil-linux.git write: remove unused variable Signed-off-by: Sami Kerola --- diff --git a/term-utils/write.c b/term-utils/write.c index 7c15231367..0afa46a6d0 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);