From: jsg Date: Sun, 25 Jul 2010 23:36:31 +0000 (+0000) Subject: Add missing braces so a loop will function as intended. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=269a21860d3c611c8b2db03765a702212ecab53c;p=openbsd Add missing braces so a loop will function as intended. ok dlg@ --- diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index 535205daaf9..04a1840ee7e 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.152 2010/07/09 16:58:06 reyk Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.153 2010/07/25 23:36:31 jsg Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -1215,9 +1215,10 @@ pfsync_in_tdb(struct pfsync_pkt *pkt, caddr_t buf, int len, int count) int s; s = splsoftnet(); - for (i = 0; i < count; i++) + for (i = 0; i < count; i++) { tp = (struct pfsync_tdb *)(buf + len * i); pfsync_update_net_tdb(tp); + } splx(s); #endif