delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/03/29/04:28:20

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-ID: <36FF40BD.EC13E131@cityweb.de>
Date: Mon, 29 Mar 1999 10:58:37 +0200
From: Corinna Vinschen <corinna DOT vinschen AT cityweb DOT de>
X-Mailer: Mozilla 4.51 [en] (WinNT; I)
X-Accept-Language: de,en
MIME-Version: 1.0
To: Chris Faylor <cgf AT cygnus DOT com>, cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Patch: Avoid warning in compiling utils/passwd.c

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 DOT vinschen AT cityweb DOT 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;
 }


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019