Remove unused variable realuid from main().
authorPetter Reinholdtsen <pere@hungry.com>
Fri, 7 Feb 2014 06:57:11 +0000 (06:57 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Fri, 7 Feb 2014 06:57:11 +0000 (06:57 +0000)
git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@145 456724a4-4300-0410-8514-c89748c515a2

src/shutdown.c

index 6318f585103579a062227d8a33dbfeafc93a1ed8..11c616fecc6ad8c9f8b1f227674c4e85fcb2965b 100644 (file)
@@ -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) {