diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-02-09 22:34:06 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-02-09 22:34:06 +0000 |
commit | 5c5f3bb5efbbc23618e67cedd29640c384fbf75d (patch) | |
tree | 8434cecc93dbf558d55339a7556c4ff7ee049d87 /usr.sbin | |
parent | fbdec73b392c4a627020410a77f7a8d186c28e79 (diff) |
mini KNF
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ospfd/lsupdate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/lsupdate.c b/usr.sbin/ospfd/lsupdate.c index e84ee701e0f..6068c4cfd52 100644 --- a/usr.sbin/ospfd/lsupdate.c +++ b/usr.sbin/ospfd/lsupdate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lsupdate.c,v 1.4 2005/02/09 15:41:33 claudio Exp $ */ +/* $OpenBSD: lsupdate.c,v 1.5 2005/02/09 22:34:05 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -172,7 +172,8 @@ send_ls_update(struct iface *iface, struct in_addr addr, void *data, int len) /* age LSA befor sending it out */ memcpy(&age, ptr, sizeof(age)); age = ntohs(age); - if ((age += iface->transfer_delay) >= MAX_AGE) age = MAX_AGE; + if ((age += iface->transfer_delay) >= MAX_AGE) + age = MAX_AGE; age = ntohs(age); memcpy(ptr, &age, sizeof(age)); |