commit 730c805cb1db6162f9a896258aada12de07ccd59 from: Omar Polo date: Sat Sep 07 10:45:49 2024 UTC rename ibuf -> imsgbuf commit - d50b6001c5f5f106e0e5b148bb72fe06f2c9bc78 commit + 730c805cb1db6162f9a896258aada12de07ccd59 blob - 26de8c3463b3ed60b05a48ed4b26fdd37ddb75d2 blob + 01439b9e598a7bf45e46c1328da61d697115f13a --- gotd/notify.c +++ gotd/notify.c @@ -458,13 +458,13 @@ static void 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. */ @@ -474,7 +474,7 @@ notify_dispatch(int fd, short event, void *arg) } 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) { @@ -487,7 +487,7 @@ notify_dispatch(int fd, short event, void *arg) 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;