summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/ip.c
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1998-03-13 01:26:04 +0000
committerbrian <brian@cvs.openbsd.org>1998-03-13 01:26:04 +0000
commita269272d6693c9b2f0ab3fada4244139c07ac58f (patch)
treeed43445c015935ffb99be5dcdac994f41a2730b4 /usr.sbin/ppp/ip.c
parent8c687b21c105bcc201351349f6262a3aa8db5935 (diff)
Add extraneous braces to stiffle warnings from gcc-2.8
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r--usr.sbin/ppp/ip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c
index b686f4a5bf8..66deccaecc1 100644
--- a/usr.sbin/ppp/ip.c
+++ b/usr.sbin/ppp/ip.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: ip.c,v 1.7 1998/01/21 02:13:33 brian Exp $
+ * $Id: ip.c,v 1.8 1998/03/13 01:25:58 brian Exp $
*
* TODO:
* o Return ICMP message for filterd packet
@@ -473,11 +473,12 @@ IpInput(struct mbuf * bp)
IpcpAddInOctets(nb);
nb += sizeof tun - sizeof tun.data;
nw = write(tun_out, &tun, nb);
- if (nw != nb)
+ if (nw != nb) {
if (nw == -1)
LogPrintf(LogERROR, "IpInput: wrote %d, got %s\n", nb, strerror(errno));
else
LogPrintf(LogERROR, "IpInput: wrote %d, got %d\n", nb, nw);
+ }
}
pfree(bp);