> +    n = read(uinput_fd, (char *)&inp_event + offset, sizeof(inp_event) - 
> offset);
> +    offset += n;
> +    if (offset < sizeof(inp_event)) {
> +        return;
> +    }

Nit:  you don't handle errors (I realize you're only here when select
indicates read data is present, but still...)

Cheers,

Jeremy

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to