=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lock/lock.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/lock/lock.c 1995/10/18 08:45:33 1.1 +++ src/usr.bin/lock/lock.c 1996/05/24 09:19:50 1.2 @@ -1,4 +1,4 @@ -/* $NetBSD: lock.c,v 1.7 1995/06/27 00:16:17 jtc Exp $ */ +/* $NetBSD: lock.c,v 1.8 1996/05/07 18:32:31 jtc Exp $ */ /* * Copyright (c) 1980, 1987, 1993 @@ -46,7 +46,7 @@ #if 0 static char sccsid[] = "@(#)lock.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$NetBSD: lock.c,v 1.7 1995/06/27 00:16:17 jtc Exp $"; +static char rcsid[] = "$NetBSD: lock.c,v 1.8 1996/05/07 18:32:31 jtc Exp $"; #endif /* not lint */ /* @@ -66,8 +66,10 @@ #include #include #include +#include #include #include +#include #define TIMEOUT 15 @@ -84,7 +86,6 @@ char **argv; { extern char *optarg; - extern int errno, optind; struct passwd *pw; struct timeval timval; struct itimerval ntimer, otimer; @@ -93,7 +94,7 @@ int ch, sectimeout, usemine; char *ap, *mypw, *ttynam, *tzn; char hostname[MAXHOSTNAMELEN], s[BUFSIZ], s1[BUFSIZ]; - char *crypt(), *ttyname(); + char *crypt(); sectimeout = TIMEOUT; mypw = NULL;