diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-06-18 01:32:43 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-06-18 01:32:43 +0200 |
| commit | c9c4f4cda362679567bc4bc04ffedc5d984e2329 (patch) | |
| tree | eedf4a098d81a959c6c40a294c65302b007d1982 /src/iobuf.c | |
| parent | d4704c0d6d70a2815c5ca12d74ba11cc7be69e20 (diff) | |
Rectify argument order in mtdev_fetch
The argument order in mtdev_fetch() differs from all other
usages involved the file descriptor. Fixed with this patch.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/iobuf.c')
| -rw-r--r-- | src/iobuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iobuf.c b/src/iobuf.c index 83e531a..199e0d8 100644 --- a/src/iobuf.c +++ b/src/iobuf.c | |||
| @@ -41,7 +41,7 @@ int mtdev_idle(struct mtdev *dev, int fd, int ms) | |||
| 41 | poll(&fds, 1, ms) <= 0; | 41 | poll(&fds, 1, ms) <= 0; |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | int mtdev_fetch(struct mtdev *dev, struct input_event *ev, int fd) | 44 | int mtdev_fetch(struct mtdev *dev, int fd, struct input_event *ev) |
| 45 | { | 45 | { |
| 46 | struct mtdev_iobuf *buf = &dev->state->iobuf; | 46 | struct mtdev_iobuf *buf = &dev->state->iobuf; |
| 47 | int n = buf->head - buf->tail; | 47 | int n = buf->head - buf->tail; |
| @@ -69,7 +69,7 @@ int mtdev_pull(struct mtdev *dev, int fd, int max_events) | |||
| 69 | struct input_event ev; | 69 | struct input_event ev; |
| 70 | int ret, count = 0; | 70 | int ret, count = 0; |
| 71 | while (max_events-- && !evbuf_full(&state->inbuf)) { | 71 | while (max_events-- && !evbuf_full(&state->inbuf)) { |
| 72 | ret = mtdev_fetch(dev, &ev, fd); | 72 | ret = mtdev_fetch(dev, fd, &ev); |
| 73 | if (ret < 0) | 73 | if (ret < 0) |
| 74 | return ret; | 74 | return ret; |
| 75 | if (ret == 0) | 75 | if (ret == 0) |
