diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-04-25 08:06:33 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-04-25 08:06:33 +0000 |
commit | e753765157f75a90d0d97d5d513969a245875c0e (patch) | |
tree | c0c2b7a1fb0582b543921dea3da47f331176d257 /usr.sbin/ospfd | |
parent | 91aa923acb4ce84bdebb15a6ecf93cc43b9d090d (diff) |
The return value of lsa_num_links is an u_int16_t tnd not int. Found by lint.
Diffstat (limited to 'usr.sbin/ospfd')
-rw-r--r-- | usr.sbin/ospfd/rde.h | 4 | ||||
-rw-r--r-- | usr.sbin/ospfd/rde_lsdb.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ospfd/rde.h b/usr.sbin/ospfd/rde.h index 6e454b28d5b..ffa2c2447a8 100644 --- a/usr.sbin/ospfd/rde.h +++ b/usr.sbin/ospfd/rde.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.h,v 1.28 2006/03/22 16:01:20 claudio Exp $ */ +/* $OpenBSD: rde.h,v 1.29 2006/04/25 08:06:31 claudio Exp $ */ /* * Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org> @@ -114,7 +114,7 @@ void lsa_del(struct rde_nbr *, struct lsa_hdr *); void lsa_age(struct vertex *); struct vertex *lsa_find(struct area *, u_int8_t, u_int32_t, u_int32_t); struct vertex *lsa_find_net(struct area *area, u_int32_t); -int lsa_num_links(struct vertex *); +u_int16_t lsa_num_links(struct vertex *); void lsa_snap(struct area *, u_int32_t); void lsa_dump(struct lsa_tree *, int, pid_t); void lsa_merge(struct rde_nbr *, struct lsa *, struct vertex *); diff --git a/usr.sbin/ospfd/rde_lsdb.c b/usr.sbin/ospfd/rde_lsdb.c index 8bf3bd2a8d2..2887b77ff96 100644 --- a/usr.sbin/ospfd/rde_lsdb.c +++ b/usr.sbin/ospfd/rde_lsdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_lsdb.c,v 1.30 2006/03/22 16:01:20 claudio Exp $ */ +/* $OpenBSD: rde_lsdb.c,v 1.31 2006/04/25 08:06:32 claudio Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org> @@ -458,7 +458,7 @@ lsa_find_net(struct area *area, u_int32_t ls_id) return (NULL); } -int +u_int16_t lsa_num_links(struct vertex *v) { switch (v->type) { |