fix warnings

This commit is contained in:
Love Hornquist Astrand
2010-06-03 16:16:48 -07:00
parent abd5fdab5a
commit efa5a314a8
3 changed files with 3 additions and 3 deletions

View File

@@ -47,7 +47,7 @@
*/ */
int int
_hc_unix_device_fd(int flags, char **fn) _hc_unix_device_fd(int flags, const char **fn)
{ {
static const char *rnd_devices[] = { static const char *rnd_devices[] = {
"/dev/urandom", "/dev/urandom",

View File

@@ -342,7 +342,7 @@ RAND_write_file(const char *filename)
const char * const char *
RAND_file_name(char *filename, size_t size) RAND_file_name(char *filename, size_t size)
{ {
char *e = NULL; const char *e = NULL;
int pathp = 0, ret; int pathp = 0, ret;
if (!issuid()) { if (!issuid()) {

View File

@@ -45,6 +45,6 @@ extern const RAND_METHOD hc_rand_timer_method;
extern const RAND_METHOD hc_rand_w32crypto_method; extern const RAND_METHOD hc_rand_w32crypto_method;
const RAND_METHOD * RAND_timer_method(void); 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 */ #endif /* _HEIM_RANDI_H */