summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-04-25 08:33:01 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-04-25 08:33:01 +0000
commit4de04b6968eec18bc037a37d3e808dddef1a5380 (patch)
tree540b794f2f36de74ee4a1b50bf5e27ebfb68fd79
parent7a89d172fba6f6e473f9c74d299b100f3b5c45d4 (diff)
Use size_t for buffer lenght passed to send_ls_ack() plus an ARGSUSED.
-rw-r--r--usr.sbin/ospfd/lsack.c5
-rw-r--r--usr.sbin/ospfd/ospfe.h4
2 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/ospfd/lsack.c b/usr.sbin/ospfd/lsack.c
index 2a71bb356e0..f2640d8d37a 100644
--- a/usr.sbin/ospfd/lsack.c
+++ b/usr.sbin/ospfd/lsack.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lsack.c,v 1.16 2006/03/13 09:36:06 claudio Exp $ */
+/* $OpenBSD: lsack.c,v 1.17 2006/04/25 08:33:00 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -35,7 +35,7 @@ void start_ls_ack_tx_timer_now(struct iface *);
/* link state acknowledgement packet handling */
int
-send_ls_ack(struct iface *iface, struct in_addr addr, void *data, int len)
+send_ls_ack(struct iface *iface, struct in_addr addr, void *data, size_t len)
{
struct sockaddr_in dst;
struct buf *buf;
@@ -206,6 +206,7 @@ ls_ack_list_empty(struct iface *iface)
}
/* timers */
+/* ARGSUSED */
void
ls_ack_tx_timer(int fd, short event, void *arg)
{
diff --git a/usr.sbin/ospfd/ospfe.h b/usr.sbin/ospfd/ospfe.h
index 222f6a95476..aedffc91470 100644
--- a/usr.sbin/ospfd/ospfe.h
+++ b/usr.sbin/ospfd/ospfe.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfe.h,v 1.29 2006/04/25 08:24:45 claudio Exp $ */
+/* $OpenBSD: ospfe.h,v 1.30 2006/04/25 08:33:00 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -152,7 +152,7 @@ int if_set_mcast_loop(int);
/* lsack.c */
int delay_lsa_ack(struct iface *, struct lsa_hdr *);
-int send_ls_ack(struct iface *, struct in_addr, void *data, int len);
+int send_ls_ack(struct iface *, struct in_addr, void *, size_t);
void recv_ls_ack(struct nbr *, char *, u_int16_t);
int lsa_hdr_check(struct nbr *, struct lsa_hdr *);
void ls_ack_list_add(struct iface *, struct lsa_hdr *);