xdm: Changes to 'master'
Alan Coopersmith
alanc at kemper.freedesktop.org
Sat Aug 3 21:19:30 PDT 2013
xdm/prngc.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit a0ab1f13b749e9486f5d50e16e67a9de6733b8a4
Author: Thomas Klausner <wiz at NetBSD.org>
Date: Sun Jun 2 22:20:41 2013 +0200
Add wrapper function for write.
gcc-4.5.4 on NetBSD complains:
xdm/prngc.c: In function âget_prngd_bytesâ:
xdm/prngc.c:133:2: error: passing argument 1 of âatomicioâ from incompatible pointer type
xdm/prngc.c:46:16: note: expected âssize_t (*)(int, void *, size_t)â but argument is of type âssize_t (*)(int, const void *, size_t)â
The problem is that the read(2) and write(2) syscalls differ
in the const-ness of their second argument. The wrapper
function gets rid of the difference.
Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
More information about the xorg-commit
mailing list