summaryrefslogtreecommitdiff
path: root/usr.sbin/npppctl/npppctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/npppctl/npppctl.c')
-rw-r--r--usr.sbin/npppctl/npppctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/npppctl/npppctl.c b/usr.sbin/npppctl/npppctl.c
index 5860ddd9168..c7d5ce5a0dc 100644
--- a/usr.sbin/npppctl/npppctl.c
+++ b/usr.sbin/npppctl/npppctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: npppctl.c,v 1.12 2024/11/21 13:08:55 claudio Exp $ */
+/* $OpenBSD: npppctl.c,v 1.13 2024/11/21 13:17:02 claudio Exp $ */
/*
* Copyright (c) 2012 Internet Initiative Japan Inc.
@@ -108,7 +108,7 @@ main(int argc, char *argv[])
if (connect(ctlsock, (struct sockaddr *)&sun, sizeof(sun)) == -1)
err(EXIT_FAILURE, "connect");
- imsg_init(&ctl_ibuf, ctlsock);
+ imsgbuf_init(&ctl_ibuf, ctlsock);
switch (result->action) {
case SESSION_BRIEF:
@@ -509,14 +509,14 @@ imsg_wait_command_completion(void)
{
int n;
- if (imsg_flush(&ctl_ibuf) == -1)
+ if (imsgbuf_flush(&ctl_ibuf) == -1)
return (-1);
do {
if ((n = imsg_get(&ctl_ibuf, &ctl_imsg)) == -1)
return (-1);
if (n != 0)
break;
- if (((n = imsg_read(&ctl_ibuf)) == -1 && errno != EAGAIN) ||
+ if (((n = imsgbuf_read(&ctl_ibuf)) == -1 && errno != EAGAIN) ||
n == 0)
return (-1);
} while (1);