From 82eebb81796807cce84ae585bb455f7b71bed36e Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 29 May 1994 22:35:53 +0000 Subject: [PATCH] took out crypt() definition --- check.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/check.c b/check.c index 96cc60dc6..73c88b6bd 100644 --- a/check.c +++ b/check.c @@ -64,7 +64,7 @@ static char rcsid[] = "$Id$"; #include #endif /* __svr4__ */ -extern char *getpass __P((char *)); + /* * Prototypes for local functions @@ -221,9 +221,6 @@ static void update_timestamp() static void check_passwd() { -#if !(defined (linux) && defined (HAVE_LIBSHADOW)) - char *crypt __P((char *, char *)); -#endif /* linux */ struct passwd *pw_ent; #ifdef __svr4__ struct spwd *spw_ent; @@ -261,10 +258,10 @@ static void check_passwd() * you get TRIES_FOR_PASSWORD times to guess your password */ while (counter > 0) { - pass = getpass("Password:"); + pass = (char *) getpass("Password:"); if (*pass == '\0') exit(0); - if (!strcmp(encrypted, crypt(pass, encrypted))) + if (!strcmp(encrypted, (char *) crypt(pass, encrypted))) return; /* if the passwd is correct return() */ --counter; /* otherwise, try again */ #ifdef USE_INSULTS -- 2.50.1