commit - d50b6001c5f5f106e0e5b148bb72fe06f2c9bc78
commit + 730c805cb1db6162f9a896258aada12de07ccd59
blob - 26de8c3463b3ed60b05a48ed4b26fdd37ddb75d2
blob + 01439b9e598a7bf45e46c1328da61d697115f13a
--- gotd/notify.c
+++ gotd/notify.c
notify_dispatch(int fd, short event, void *arg)
{
struct gotd_imsgev *iev = arg;
- struct imsgbuf *ibuf = &iev->ibuf;
+ struct imsgbuf *imsgbuf = &iev->ibuf;
ssize_t n;
int shut = 0;
struct imsg imsg;
if (event & EV_READ) {
- if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
+ if ((n = imsg_read(imsgbuf)) == -1 && errno != EAGAIN)
fatal("imsg_read error");
if (n == 0) {
/* Connection closed. */
}
if (event & EV_WRITE) {
- n = msgbuf_write(&ibuf->w);
+ n = msgbuf_write(&imsgbuf->w);
if (n == -1 && errno != EAGAIN)
fatal("msgbuf_write");
if (n == 0) {
for (;;) {
const struct got_error *err = NULL;
- if ((n = imsg_get(ibuf, &imsg)) == -1)
+ if ((n = imsg_get(imsgbuf, &imsg)) == -1)
fatal("%s: imsg_get error", __func__);
if (n == 0) /* No more messages. */
break;