5c0b50e772
Tested by Simon Kuhnle, sturm@, msf@ and Daniel Dickman. Thanks!
25 lines
856 B
Plaintext
25 lines
856 B
Plaintext
$OpenBSD: patch-imap-send_c,v 1.5 2009/08/17 14:47:54 bernd Exp $
|
|
|
|
Fix "warning: missing sentinel in function call" on 64bit archs.
|
|
|
|
--- imap-send.c.orig Wed Jul 29 10:18:18 2009
|
|
+++ imap-send.c Sat Aug 1 10:41:01 2009
|
|
@@ -498,7 +498,7 @@ static void arc4_init(void)
|
|
int i, fd;
|
|
unsigned char j, si, dat[128];
|
|
|
|
- if ((fd = open("/dev/urandom", O_RDONLY)) < 0 && (fd = open("/dev/random", O_RDONLY)) < 0) {
|
|
+ if ((fd = open("/dev/arandom", O_RDONLY)) < 0 && (fd = open("/dev/random", O_RDONLY)) < 0) {
|
|
fprintf(stderr, "Fatal: no random number source available.\n");
|
|
exit(3);
|
|
}
|
|
@@ -1009,7 +1009,7 @@ static struct store *imap_open_store(struct imap_serve
|
|
_exit(127);
|
|
close(a[0]);
|
|
close(a[1]);
|
|
- execl("/bin/sh", "sh", "-c", srvc->tunnel, NULL);
|
|
+ execl("/bin/sh", "sh", "-c", srvc->tunnel, (void *)NULL);
|
|
_exit(127);
|
|
}
|
|
|