Index: src/shutdown.c
===================================================================
--- src/shutdown.c	(revision 141)
+++ src/shutdown.c	(working copy)
@@ -483,7 +483,6 @@
 	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			user_ok = 0;
 
 	/* We can be installed setuid root (executable for a special group) */
-	realuid = getuid();
 	setuid(geteuid());
 
 	if (getuid() != 0) {
Index: src/sulogin.c
===================================================================
--- src/sulogin.c	(revision 141)
+++ src/sulogin.c	(working copy)
@@ -228,13 +228,9 @@
 static
 void tcfinal(struct console *con)
 {
-	int serial;
 	struct termios *tio = &con->tio;
 	int fd = con->fd;
 
-	/* Expected error */
-	serial = errno = 0;
-
 	if ((con->flags & CON_SERIAL) == 0) {
 #ifdef __linux__
 		setenv("TERM", "linux", 1);
