Dmitry Timoshkov dmitry@baikal.ru writes:
@@ -209,7 +211,7 @@ DECL_HANDLER(get_serial_info) reply->writemult = serial->writemult;
/* event mask */
reply->eventmask = serial->eventmask;
reply->eventmask = serial->eventmask | (serial->generation << 16);
It would be better to return it as a separate field, particularly since eventmask is already an int.