summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-03-03 23:22:25 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-03-03 23:22:25 +0100
commit6887a0998908cfdd77fac7176ab3d255143ff8e8 (patch)
tree70fbda89130da2b5f27087222be149b927aa2fa5 /common
parent38ea955f605d954a9671e539113b9db42dc1160c (diff)
downloadeurephia-6887a0998908cfdd77fac7176ab3d255143ff8e8.tar.gz
eurephia-6887a0998908cfdd77fac7176ab3d255143ff8e8.tar.xz
eurephia-6887a0998908cfdd77fac7176ab3d255143ff8e8.zip
Made the destination buffer for random data more type independent (void *)
Diffstat (limited to 'common')
-rw-r--r--common/randstr.c2
-rw-r--r--common/randstr.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/randstr.c b/common/randstr.c
index d27ec9f..643e7c5 100644
--- a/common/randstr.c
+++ b/common/randstr.c
@@ -29,7 +29,7 @@
static int rand_init = 0;
// Generate some random data and return a string.
-int eurephia_randstring(eurephiaCTX *ctx, char *rndstr, size_t len) {
+int eurephia_randstring(eurephiaCTX *ctx, void *rndstr, size_t len) {
int attempts = 0;
do {
if( !rand_init ) {
diff --git a/common/randstr.h b/common/randstr.h
index c4739a6..d6e86a0 100644
--- a/common/randstr.h
+++ b/common/randstr.h
@@ -21,6 +21,6 @@
#ifndef RANDSTR_H_
#define RANDSTR_H_
-int eurephia_randstring(eurephiaCTX *ctx, char *rndstr, size_t len);
+int eurephia_randstring(eurephiaCTX *ctx, void *rndstr, size_t len);
#endif /* !RANDSTR_H_ */