diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-03-29 14:41:11 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-29 14:41:11 +0300 |
commit | 087aca6163236ab7ce55d73bba938ebaed57c2d7 (patch) | |
tree | f2122af55be217e4906ce12970a43359222f0ae1 | |
parent | 660f84b15babdada62703f47e43f6dba8b4aebe9 (diff) |
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>
-rw-r--r-- | winsup/cygwin/random.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |