summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-12-20 14:36:46 +0000
committerhenning <henning@openbsd.org>2003-12-20 14:36:46 +0000
commit077a829c5ea918dffff01cdb43bbd35d4723434a (patch)
tree8c2c900812a5c4017399d179bb9f10e0294d29eb
parentread(2)/write(2) return ssize_t, not size_t (diff)
downloadwireguard-openbsd-077a829c5ea918dffff01cdb43bbd35d4723434a.tar.xz
wireguard-openbsd-077a829c5ea918dffff01cdb43bbd35d4723434a.zip
poll returns plain int...
-rw-r--r--usr.sbin/bgpd/rde.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index 5ce9c519d44..e9b6388563a 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.9 2003/12/19 19:24:08 deraadt Exp $ */
+/* $OpenBSD: rde.c,v 1.10 2003/12/20 14:36:46 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -76,8 +76,7 @@ rde_main(struct bgpd_config *config, int pipe_m2r[2], int pipe_s2r[2])
pid_t pid;
struct passwd *pw;
struct pollfd pfd[2];
- size_t nfds;
- int n;
+ int n, nfds;
switch (pid = fork()) {
case -1: