On Fri, Jun 28, 2013 at 7:35 PM, Thomas Klausner <[email protected]> wrote:
> -       if (atomicio(write, fd, msg, sizeof(msg)) != sizeof(msg)) {
> +       if (atomicio((ssize_t (*)(int, void *, size_t))write, fd, msg, 
> sizeof(msg)) != sizeof(msg)) {

This cast looks really gross to me...

What about wrapping write() in a function that takes care of casting the second
parameter of the function?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to