On 09/28/2014 11:49 AM, Karsten Otto wrote:

+               msg.msg_control = NULL;
+               msg.msg_controllen = 0;
                msg.msg_flags = 0;

+               /* Only set msg_control when sending ancillary data */
+               if (clen > 0) {
+                       msg.msg_controllen = clen;
+                       msg.msg_control = cmsg;
+               }

How about:

  msg.msg_controllen = clen;
  msg.msg_control = clen ? cmsg : NULL;
  msg.msg_flags = 0;


_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to