From c27beccd395a7093c12bb227de40a1b9a1e56e40 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 8 May 2002 09:24:09 +0000 Subject: 2002-05-08 Roland McGrath * idvec-verify.c (verify_passwd): Cast to intptr_t before int. --- libshouldbeinlibc/idvec-verify.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libshouldbeinlibc/idvec-verify.c b/libshouldbeinlibc/idvec-verify.c index 4014c2b5..4e957d43 100644 --- a/libshouldbeinlibc/idvec-verify.c +++ b/libshouldbeinlibc/idvec-verify.c @@ -1,8 +1,7 @@ /* Verify user passwords - Copyright (C) 1996,97,98,99 Free Software Foundation, Inc. - - Written by Miles Bader + Copyright (C) 1996,97,98,99,2002 Free Software Foundation, Inc. + Written by Miles Bader This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -54,7 +53,7 @@ verify_passwd (const char *password, void *pwd_or_grp, void *hook) { const char *encrypted; - int wheel_uid = (int)hook; + int wheel_uid = (intptr_t)hook; const char *sys_encrypted; if (! pwd_or_grp) @@ -174,7 +173,7 @@ idvec_verify (const struct idvec *uids, const struct idvec *gids, if (! verify_fn) { verify_fn = verify_passwd; - verify_hook = (void *)wheel_uid; + verify_hook = (void *)(intptr_t)wheel_uid; } /* See if there are multiple ids in contention, in which case we should -- cgit v1.2.3