diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-12-14 11:10:20 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-12-14 11:10:20 +0000 |
commit | e1ba33c5ceafbc400f3c86b405c0174b6b4f9f23 (patch) | |
tree | bf758873a65fe0eccf5d93ff6522913c15bc5136 /usr.sbin/eigrpd | |
parent | b729044d9409ccbbfc5cf44ec6bb4c8b118b21a2 (diff) |
Use imsg_get_fd() to access the file descriptor passed in the imsg.
OK tb@
Diffstat (limited to 'usr.sbin/eigrpd')
-rw-r--r-- | usr.sbin/eigrpd/eigrpe.c | 4 | ||||
-rw-r--r-- | usr.sbin/eigrpd/rde.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/eigrpd/eigrpe.c b/usr.sbin/eigrpd/eigrpe.c index ad5495df994..007ae62697c 100644 --- a/usr.sbin/eigrpd/eigrpe.c +++ b/usr.sbin/eigrpd/eigrpe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eigrpe.c,v 1.40 2023/03/08 04:43:13 guenther Exp $ */ +/* $OpenBSD: eigrpe.c,v 1.41 2023/12/14 11:09:56 claudio Exp $ */ /* * Copyright (c) 2015 Renato Westphal <renato@openbsd.org> @@ -289,7 +289,7 @@ eigrpe_dispatch_main(int fd, short event, void *bula) "to rde", __func__); break; } - if ((fd = imsg.fd) == -1) { + if ((fd = imsg_get_fd(&imsg)) == -1) { log_warnx("%s: expected to receive imsg fd to " "rde but didn't receive any", __func__); break; diff --git a/usr.sbin/eigrpd/rde.c b/usr.sbin/eigrpd/rde.c index b14d967ba2d..383a3ee57a2 100644 --- a/usr.sbin/eigrpd/rde.c +++ b/usr.sbin/eigrpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.25 2023/03/08 04:43:13 guenther Exp $ */ +/* $OpenBSD: rde.c,v 1.26 2023/12/14 11:09:56 claudio Exp $ */ /* * Copyright (c) 2015 Renato Westphal <renato@openbsd.org> @@ -354,7 +354,7 @@ rde_dispatch_parent(int fd, short event, void *bula) "to eigrpe", __func__); break; } - if ((fd = imsg.fd) == -1) { + if ((fd = imsg_get_fd(&imsg)) == -1) { log_warnx("%s: expected to receive imsg fd to " "eigrpe but didn't receive any", __func__); break; |