summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sliplogin
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-04-09 15:00:51 +0000
committerstefanf <stefanf@FreeBSD.org>2005-04-09 15:00:51 +0000
commit8f9f7186acbe879ea16ce72e24e4f39e96c914dd (patch)
treeb0a538b72ff3a114420eddf451b136d10c93aae6 /usr.sbin/sliplogin
parentce3085bbfbefdc248456fec1c710f8d1baea0d8e (diff)
downloadFreeBSD-src-8f9f7186acbe879ea16ce72e24e4f39e96c914dd.zip
FreeBSD-src-8f9f7186acbe879ea16ce72e24e4f39e96c914dd.tar.gz
Remove an unused variable and a useless getuid() declaration.
Diffstat (limited to 'usr.sbin/sliplogin')
-rw-r--r--usr.sbin/sliplogin/sliplogin.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/sliplogin/sliplogin.c b/usr.sbin/sliplogin/sliplogin.c
index 45b916b..dafdfd4 100644
--- a/usr.sbin/sliplogin/sliplogin.c
+++ b/usr.sbin/sliplogin/sliplogin.c
@@ -370,9 +370,8 @@ main(argc, argv)
{
int fd, s, ldisc;
char *name;
- struct termios tios, otios;
+ struct termios tios;
char logincmd[2*BUFSIZ+32];
- extern uid_t getuid();
FILE *pidfile; /* pid file */
FILE *iffile; /* interfaces file */
@@ -434,7 +433,6 @@ main(argc, argv)
syslog(LOG_ERR, "tcgetattr: %m");
exit(1);
}
- otios = tios;
cfmakeraw(&tios);
if (tcsetattr(0, TCSAFLUSH, &tios) < 0) {
syslog(LOG_ERR, "tcsetattr: %m");
OpenPOWER on IntegriCloud