summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-08 09:24:09 +0000
committerRoland McGrath <roland@gnu.org>2002-05-08 09:24:09 +0000
commitc27beccd395a7093c12bb227de40a1b9a1e56e40 (patch)
treea7bf11d1bf5d47c3ed128c8bd6676db1629cf861
parentdb85217fbc77bc5225557e599f18946bd740a42d (diff)
2002-05-08 Roland McGrath <roland@frob.com>
* idvec-verify.c (verify_passwd): Cast to intptr_t before int.
-rw-r--r--libshouldbeinlibc/idvec-verify.c9
1 files 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 <miles@gnu.ai.mit.edu>
+ Copyright (C) 1996,97,98,99,2002 Free Software Foundation, Inc.
+ Written by Miles Bader <miles@gnu.org>
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