Module Name: xsrc
Committed By: mrg
Date: Fri May 31 22:48:13 UTC 2013
Modified Files:
xsrc/external/mit/xdm/dist/xdm: prngc.c
Log Message:
add a cast to avoid a compiler error (code is bogus, but fixing it
would be more pain than is worth.)
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 xsrc/external/mit/xdm/dist/xdm/prngc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/xdm/dist/xdm/prngc.c
diff -u xsrc/external/mit/xdm/dist/xdm/prngc.c:1.1.1.1 xsrc/external/mit/xdm/dist/xdm/prngc.c:1.2
--- xsrc/external/mit/xdm/dist/xdm/prngc.c:1.1.1.1 Fri May 31 22:19:37 2013
+++ xsrc/external/mit/xdm/dist/xdm/prngc.c Fri May 31 22:48:13 2013
@@ -130,7 +130,7 @@ reopen:
msg[0] = 0x02;
msg[1] = len;
- if (atomicio(write, fd, msg, sizeof(msg)) != sizeof(msg)) {
+ if (atomicio((ssize_t (*)(int, void *, size_t))write, fd, msg, sizeof(msg)) != sizeof(msg)) {
if (errno == EPIPE && errors < 10) {
close(fd);
errors++;