--- tslib/plugins/input-raw.c.old Fri Sep 3 00:32:26 2004 +++ tslib/plugins/input-raw.c Fri Sep 3 00:33:17 2004 @@ -83,8 +83,7 @@ if (i->using_syn) { while (total < nr) { ret = read(ts->fd, &ev, sizeof(struct input_event)); - if (ret < sizeof(struct input_event)) { - total = -1; + if (ret < (int)sizeof(struct input_event)) { break; }