projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
331b592
)
Add an evil cast, because POSIX/SUSv2 define connect(2) require
author
Ralf S. Engelschall
<rse@openssl.org>
Thu, 24 Feb 2000 10:36:51 +0000
(10:36 +0000)
committer
Ralf S. Engelschall
<rse@openssl.org>
Thu, 24 Feb 2000 10:36:51 +0000
(10:36 +0000)
the second argument to be of type ``struct sockaddr *''.
crypto/rand/rand_egd.c
patch
|
blob
|
history
diff --git
a/crypto/rand/rand_egd.c
b/crypto/rand/rand_egd.c
index 802d35b5c29ecb1943dd2eefb68e207e7993a534..3a081d4f62fe5d49005f3dc52d33feb756e93177 100644
(file)
--- a/
crypto/rand/rand_egd.c
+++ b/
crypto/rand/rand_egd.c
@@
-91,7
+91,7
@@
int RAND_egd(const char *path)
len = offsetof(struct sockaddr_un, sun_path) + strlen(path);
fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (fd == -1) return (-1);
- if (connect(fd, &addr, len) == -1) goto err;
+ if (connect(fd,
(struct sockaddr *)
&addr, len) == -1) goto err;
buf[0] = 1;
buf[1] = 255;
write(fd, buf, 2);