From 5c5f3bb5efbbc23618e67cedd29640c384fbf75d Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 9 Feb 2005 22:34:06 +0000 Subject: mini KNF --- usr.sbin/ospfd/lsupdate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin') 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 @@ -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)); -- cgit v1.2.3