This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] Fix Cygwin setstate definition


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=087aca6163236ab7ce55d73bba938ebaed57c2d7

commit 087aca6163236ab7ce55d73bba938ebaed57c2d7
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue Mar 29 13:41:11 2016 +0200

    Fix Cygwin setstate definition
    
    setstate is supposed to take a char *, not a const char *.
    
    	* random.cc (setstate): Unconstify parameter to align to stdlib.h.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/random.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/random.cc b/winsup/cygwin/random.cc
index 8cccade..a6ae055 100644
--- a/winsup/cygwin/random.cc
+++ b/winsup/cygwin/random.cc
@@ -413,7 +413,7 @@ initstate(unsigned seed,		/* seed for R.N.G. */
  * complain about mis-alignment, but you should disregard these messages.
  */
 char *
-setstate(const char *arg_state /* pointer to state array */)
+setstate(char *arg_state /* pointer to state array */)
 {
 	uint32_t *new_state = (uint32_t *)arg_state;
 	uint32_t type = new_state[0] % MAX_TYPES;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]