This is the mail archive of the cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
Re: Patch: Avoid warning in compiling utils/passwd.c
- To: Corinna Vinschen <corinna.vinschen@cityweb.de>
- Subject: Re: Patch: Avoid warning in compiling utils/passwd.c
- From: Chris Faylor <cgf@cygnus.com>
- Date: Mon, 29 Mar 1999 13:19:39 -0500
- Cc: cygwin-developers@sourceware.cygnus.com
- References: <36FF40BD.EC13E131@cityweb.de>
Applied.
Thanks,
Chris
On Mon, Mar 29, 1999 at 10:58:37AM +0200, Corinna Vinschen wrote:
>Hi,
>
>an incorrect cast yields to a senseless warning, while compiling passwd.exe.
>
>Regards,
>Corinna
>
>ChangeLog:
>==========
>
>Mon Mar 29 10:50:00 Corinna Vinschen <corinna.vinschen@cityweb.de>
>
> * utils/passwd.c (GetPW): Correct cast in call to `NetUserGetInfo'.
>
>Index: passwd.c
>===================================================================
>RCS file: /src/cvsroot/winsup-990321/utils/passwd.c,v
>retrieving revision 1.1.1.1
>diff -u -p -r1.1.1.1 passwd.c
>--- utils/passwd.c 1999/03/25 23:21:38 1.1.1.1
>+++ utils/passwd.c 1999/03/29 10:45:24
>@@ -92,7 +92,7 @@ GetPW (const char *user)
> PUSER_INFO_3 ui;
>
> MultiByteToWideChar (CP_ACP, 0, user, -1, name, 512);
>- ret = NetUserGetInfo (NULL, name, 3, (LPBYTE) &ui);
>+ ret = NetUserGetInfo (NULL, name, 3, (LPBYTE *) &ui);
> return EvalRet (ret, user) ? NULL : ui;
> }
>
>
--
cgf@cygnus.com
http://www.cygnus.com/