summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-05-27 15:43:14 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-05-27 15:43:14 +0000
commitd38c03a24453b3c4cd5c99e79987a8a18d063803 (patch)
tree65a5216b943c8d148e9d643bc07e1ff1c7255d3c /usr.sbin/bgpd/session.c
parent61786072d2835793eb9d02eca9d60f9ffb3c5441 (diff)
Cleanup with lint. Make the poll fd indexes unsigned and because of that
control_accept should also return a unsigned int. Remove old prototype.
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r--usr.sbin/bgpd/session.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 5aa9a11676c..f537113c18e 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.247 2006/05/23 12:11:38 henning Exp $ */
+/* $OpenBSD: session.c,v 1.248 2006/05/27 15:43:13 claudio Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -76,7 +76,6 @@ int parse_open(struct peer *);
int parse_update(struct peer *);
int parse_refresh(struct peer *);
int parse_notification(struct peer *);
-int parse_keepalive(struct peer *);
int parse_capabilities(struct peer *, u_char *, u_int16_t);
void session_dispatch_imsg(struct imsgbuf *, int, u_int *);
void session_up(struct peer *);
@@ -164,8 +163,8 @@ session_main(struct bgpd_config *config, struct peer *cpeers,
struct network_head *net_l, struct filter_head *rules,
struct mrt_head *m_l, int pipe_m2s[2], int pipe_s2r[2], int pipe_m2r[2])
{
- int nfds, i, j, timeout;
- int idx_peers, idx_listeners, idx_mrts;
+ int nfds, timeout;
+ unsigned int i, j, idx_peers, idx_listeners, idx_mrts;
pid_t pid;
time_t nextaction;
u_int pfd_elms = 0, peer_l_elms = 0, mrt_l_elms = 0;