warp-vpn

point to point VPN implementation
git clone git://git.2f30.org/warp-vpn
Log | Files | Refs | README

commit 2c55a3862c901fda0dd5497ff8aa0e37951cdd60
parent 113583661d4602da401c981ef2cdd2d4173140d5
Author: sin <sin@2f30.org>
Date:   Tue, 12 Apr 2016 15:18:56 +0100

style fix

Diffstat:
Mnetpkt.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/netpkt.c b/netpkt.c @@ -26,7 +26,7 @@ static unsigned char *wbuf; static unsigned char *rbuf; /* total number of bytes read into input buffer */ -static size_t rbuftotal +static size_t rbuftotal; /* number of bytes remaining to read into buffer for current state */ static size_t rbufrem; @@ -155,10 +155,9 @@ netread(int fd, unsigned char *pt, size_t ptlen, size_t *outlen) return PKTCOMPLETE; case STATEDISCARD: state = STATEINITIAL; - for (;;) { + for (;;) if ((n = read(fd, rbuf, maxbuflen)) <= 0) goto out; - } break; } }