From efa5a314a8d54af3a2dc1c121a757e128fd40db5 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Thu, 3 Jun 2010 16:16:48 -0700 Subject: [PATCH] fix warnings --- lib/hcrypto/rand-unix.c | 2 +- lib/hcrypto/rand.c | 2 +- lib/hcrypto/randi.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hcrypto/rand-unix.c b/lib/hcrypto/rand-unix.c index 63dc97fbf..c52155baa 100644 --- a/lib/hcrypto/rand-unix.c +++ b/lib/hcrypto/rand-unix.c @@ -47,7 +47,7 @@ */ int -_hc_unix_device_fd(int flags, char **fn) +_hc_unix_device_fd(int flags, const char **fn) { static const char *rnd_devices[] = { "/dev/urandom", diff --git a/lib/hcrypto/rand.c b/lib/hcrypto/rand.c index d360ffcab..b02f938c5 100644 --- a/lib/hcrypto/rand.c +++ b/lib/hcrypto/rand.c @@ -342,7 +342,7 @@ RAND_write_file(const char *filename) const char * RAND_file_name(char *filename, size_t size) { - char *e = NULL; + const char *e = NULL; int pathp = 0, ret; if (!issuid()) { diff --git a/lib/hcrypto/randi.h b/lib/hcrypto/randi.h index a6d921413..fe021a80e 100644 --- a/lib/hcrypto/randi.h +++ b/lib/hcrypto/randi.h @@ -45,6 +45,6 @@ extern const RAND_METHOD hc_rand_timer_method; extern const RAND_METHOD hc_rand_w32crypto_method; const RAND_METHOD * RAND_timer_method(void); -int _hc_unix_device_fd(int, char **); +int _hc_unix_device_fd(int, const char **); #endif /* _HEIM_RANDI_H */