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:
@@ -249,12 +249,12 @@ DES_rand_data(unsigned char *data, int size)
|
|||||||
RETSIGTYPE (*ochld)(int);
|
RETSIGTYPE (*ochld)(int);
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
#endif
|
#endif
|
||||||
char *rnd_devices[] = {"/dev/random",
|
const char *rnd_devices[] = {"/dev/random",
|
||||||
"/dev/srandom",
|
"/dev/srandom",
|
||||||
"/dev/urandom",
|
"/dev/urandom",
|
||||||
"/dev/arandom",
|
"/dev/arandom",
|
||||||
NULL};
|
NULL};
|
||||||
char **p;
|
const char **p;
|
||||||
|
|
||||||
for(p = rnd_devices; *p; p++) {
|
for(p = rnd_devices; *p; p++) {
|
||||||
int fd = open(*p, O_RDONLY | O_NDELAY);
|
int fd = open(*p, O_RDONLY | O_NDELAY);
|
||||||
|
Reference in New Issue
Block a user