summaryrefslogtreecommitdiff
path: root/lib/libutil
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2023-11-18 07:14:14 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2023-11-18 07:14:14 +0000
commitf35a35b9c97d7e58494d48105e05e4d94d438e35 (patch)
tree987951034d9589632a7616e36af9c1729a735c6b /lib/libutil
parentd9a6dcce1e5d3a6b5d4f0cd6a23a1aa0628be34a (diff)
Rename internal function imsg_get_fd() to imsg_dequeue_fd().
OK tb@
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/imsg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libutil/imsg.c b/lib/libutil/imsg.c
index d6ebe79b95d..b6cc37ee1b7 100644
--- a/lib/libutil/imsg.c
+++ b/lib/libutil/imsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsg.c,v 1.21 2023/11/17 15:35:15 claudio Exp $ */
+/* $OpenBSD: imsg.c,v 1.22 2023/11/18 07:14:13 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -30,7 +30,7 @@
int imsg_fd_overhead = 0;
-static int imsg_get_fd(struct imsgbuf *);
+static int imsg_dequeue_fd(struct imsgbuf *);
void
imsg_init(struct imsgbuf *imsgbuf, int fd)
@@ -146,7 +146,7 @@ imsg_get(struct imsgbuf *imsgbuf, struct imsg *imsg)
return (-1);
if (imsg->hdr.flags & IMSGF_HASFD)
- imsg->fd = imsg_get_fd(imsgbuf);
+ imsg->fd = imsg_dequeue_fd(imsgbuf);
else
imsg->fd = -1;
@@ -301,7 +301,7 @@ imsg_free(struct imsg *imsg)
}
static int
-imsg_get_fd(struct imsgbuf *imsgbuf)
+imsg_dequeue_fd(struct imsgbuf *imsgbuf)
{
int fd;
struct imsg_fd *ifd;
@@ -331,6 +331,6 @@ imsg_clear(struct imsgbuf *imsgbuf)
int fd;
msgbuf_clear(&imsgbuf->w);
- while ((fd = imsg_get_fd(imsgbuf)) != -1)
+ while ((fd = imsg_dequeue_fd(imsgbuf)) != -1)
close(fd);
}