const poision for unwriteable strings

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15528 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-06-29 22:28:10 +00:00
parent 1dcdb9c1a0
commit 3fe2a9b92f

View File

@@ -249,12 +249,12 @@ DES_rand_data(unsigned char *data, int size)
RETSIGTYPE (*ochld)(int);
pid_t pid;
#endif
char *rnd_devices[] = {"/dev/random",
const char *rnd_devices[] = {"/dev/random",
"/dev/srandom",
"/dev/urandom",
"/dev/arandom",
NULL};
char **p;
const char **p;
for(p = rnd_devices; *p; p++) {
int fd = open(*p, O_RDONLY | O_NDELAY);