diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-21 13:10:58 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-21 13:10:58 +0000 |
commit | 6b0deb304b4f88788be43f9b689c006766cd0a30 (patch) | |
tree | 1a802a41ec15d85e5161dce51b6ab0c5ca229038 /usr.sbin/rad/rad.c | |
parent | a423251e6ce072befee8d8b94b6a46d5438768d3 (diff) |
Introduce imsg_write() and use it instead of msgbuf_write().
imsg_write() is just a thin wrapper around msgbuf_write(). So this is
mostly search and replace.
OK tb@
Diffstat (limited to 'usr.sbin/rad/rad.c')
-rw-r--r-- | usr.sbin/rad/rad.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/rad/rad.c b/usr.sbin/rad/rad.c index 036a73e1765..acce6cf714e 100644 --- a/usr.sbin/rad/rad.c +++ b/usr.sbin/rad/rad.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rad.c,v 1.31 2024/05/21 05:00:48 jsg Exp $ */ +/* $OpenBSD: rad.c,v 1.32 2024/11/21 13:10:47 claudio Exp $ */ /* * Copyright (c) 2018 Florian Obser <florian@openbsd.org> @@ -387,8 +387,8 @@ main_dispatch_frontend(int fd, short event, void *bula) shut = 1; } if (event & EV_WRITE) { - if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN) - fatal("msgbuf_write"); + if ((n = imsg_write(ibuf)) == -1 && errno != EAGAIN) + fatal("imsg_write"); if (n == 0) /* Connection closed. */ shut = 1; } @@ -455,8 +455,8 @@ main_dispatch_engine(int fd, short event, void *bula) shut = 1; } if (event & EV_WRITE) { - if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN) - fatal("msgbuf_write"); + if ((n = imsg_write(ibuf)) == -1 && errno != EAGAIN) + fatal("imsg_write"); if (n == 0) /* Connection closed. */ shut = 1; } |