diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-12-14 09:59:28 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-12-14 09:59:28 +0000 |
commit | 6065d200a7a39cc9e81facacbf5d5394fe914c16 (patch) | |
tree | 0c1fa125a11669fd5543c3f000a04b457e0d59cd /sbin/slaacd/frontend.c | |
parent | 90fdf1cc5dfd2163be108be6a97064d3f6778058 (diff) |
Use imsg_get_fd() to access the fd passed with the imsg.
Go ahead florian@ OK tb@
Diffstat (limited to 'sbin/slaacd/frontend.c')
-rw-r--r-- | sbin/slaacd/frontend.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/slaacd/frontend.c b/sbin/slaacd/frontend.c index 24cf5c71cfc..25b6fe2ce34 100644 --- a/sbin/slaacd/frontend.c +++ b/sbin/slaacd/frontend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frontend.c,v 1.64 2022/07/12 16:54:59 florian Exp $ */ +/* $OpenBSD: frontend.c,v 1.65 2023/12/14 09:58:59 claudio Exp $ */ /* * Copyright (c) 2017 Florian Obser <florian@openbsd.org> @@ -314,7 +314,7 @@ frontend_dispatch_main(int fd, short event, void *bula) fatalx("%s: received unexpected imsg fd " "to frontend", __func__); - if ((fd = imsg.fd) == -1) + if ((fd = imsg_get_fd(&imsg)) == -1) fatalx("%s: expected to receive imsg fd to " "frontend but didn't receive any", __func__); @@ -332,7 +332,7 @@ frontend_dispatch_main(int fd, short event, void *bula) event_add(&iev_engine->ev, NULL); break; case IMSG_ICMP6SOCK: - if ((icmp6sock = imsg.fd) == -1) + if ((icmp6sock = imsg_get_fd(&imsg)) == -1) fatalx("%s: expected to receive imsg " "ICMPv6 fd but didn't receive any", __func__); @@ -343,7 +343,7 @@ frontend_dispatch_main(int fd, short event, void *bula) set_icmp6sock(icmp6sock, rdomain); break; case IMSG_ROUTESOCK: - if ((fd = imsg.fd) == -1) + if ((fd = imsg_get_fd(&imsg)) == -1) fatalx("%s: expected to receive imsg " "routesocket fd but didn't receive any", __func__); @@ -355,7 +355,7 @@ frontend_dispatch_main(int fd, short event, void *bula) break; #ifndef SMALL case IMSG_CONTROLFD: - if ((fd = imsg.fd) == -1) + if ((fd = imsg_get_fd(&imsg)) == -1) fatalx("%s: expected to receive imsg " "control fd but didn't receive any", __func__); |