From a7bf0bf7e93308bf6f10cfc1fd2bd554c9e7a3b3 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Fri, 7 Feb 2014 06:57:11 +0000 Subject: [PATCH] Remove unused variable realuid from main(). --- src/shutdown.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/shutdown.c b/src/shutdown.c index 6318f58..11c616f 100644 --- a/src/shutdown.c +++ b/src/shutdown.c @@ -483,7 +483,6 @@ int main(int argc, char **argv) struct stat st; struct utmp *ut; time_t t; - uid_t realuid; char *halttype; char *downusers[32]; char buf[128]; @@ -499,7 +498,6 @@ int main(int argc, char **argv) int user_ok = 0; /* We can be installed setuid root (executable for a special group) */ - realuid = getuid(); setuid(geteuid()); if (getuid() != 0) {