summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ip.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-03-13 01:36:10 +0000
committerbrian <brian@FreeBSD.org>1998-03-13 01:36:10 +0000
commit95c31de535e78cfa5906537fdd820292b327f72d (patch)
treef529f4a6210cf9d479a21d0fcec57c575bee5e55 /usr.sbin/ppp/ip.c
parent016c85730a38238d6141fa7c3929963b2cf4415e (diff)
downloadFreeBSD-src-95c31de535e78cfa5906537fdd820292b327f72d.zip
FreeBSD-src-95c31de535e78cfa5906537fdd820292b327f72d.tar.gz
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 ddd520b..a784bb5 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.37 1998/01/11 17:53:18 brian Exp $
+ * $Id: ip.c,v 1.38 1998/01/21 02:15:16 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);
OpenPOWER on IntegriCloud