From 087aca6163236ab7ce55d73bba938ebaed57c2d7 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 29 Mar 2016 13:41:11 +0200 Subject: [PATCH] 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 --- 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 8cccadeef..a6ae05543 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;