diff options
author | glebius <glebius@FreeBSD.org> | 2007-01-15 05:55:56 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2007-01-15 05:55:56 +0000 |
commit | 06a509ffdccab3389f6fa2984a2cf0d8e5679389 (patch) | |
tree | 7e883bec3bb24a2797f3897cf7303137152c041d /sys/netgraph | |
parent | 3ff4e1770d32d5584e15768f76a32a3004edcf35 (diff) | |
download | FreeBSD-src-06a509ffdccab3389f6fa2984a2cf0d8e5679389.zip FreeBSD-src-06a509ffdccab3389f6fa2984a2cf0d8e5679389.tar.gz |
Whitespace cleanup.
Checked with: cvs diff -b
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_deflate.c | 14 | ||||
-rw-r--r-- | sys/netgraph/ng_pred1.c | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/sys/netgraph/ng_deflate.c b/sys/netgraph/ng_deflate.c index eacaa22..84609e3 100644 --- a/sys/netgraph/ng_deflate.c +++ b/sys/netgraph/ng_deflate.c @@ -222,7 +222,7 @@ ng_deflate_rcvmsg(node_p node, item_p item, hook_p lasthook) if (msg->header.typecookie != NGM_DEFLATE_COOKIE) ERROUT(EINVAL); - + switch (msg->header.cmd) { case NGM_DEFLATE_CONFIG: { @@ -246,7 +246,7 @@ ng_deflate_rcvmsg(node_p node, item_p item, hook_p lasthook) inflateEnd(&priv->cx); priv->cfg.enable = 0; } - + /* Configuration is OK, reset to it. */ priv->cfg = *cfg; @@ -300,7 +300,7 @@ ng_deflate_rcvmsg(node_p node, item_p item, hook_p lasthook) if (resp == NULL) ERROUT(ENOMEM); bcopy(&priv->stats, resp->data, - sizeof(struct ng_deflate_stats)); + sizeof(struct ng_deflate_stats)); } /* Clear stats if requested. */ @@ -334,7 +334,7 @@ ng_deflate_rcvdata(hook_p hook, item_p item) NG_FREE_ITEM(item); return (ENXIO); } - + NGI_GET_M(item, m); /* Compress */ if (priv->compress) { @@ -458,7 +458,7 @@ ng_deflate_compress(node_p node, struct mbuf *m, struct mbuf **resultp) NG_FREE_M(m); return (ENOMEM); } - + /* Work with contiguous regions of memory. */ m_copydata(m, 0, inlen, (caddr_t)priv->inbuf); outlen = DEFLATE_BUF_SIZE; @@ -538,7 +538,7 @@ ng_deflate_decompress(node_p node, struct mbuf *m, struct mbuf **resultp) *resultp = NULL; inlen = m->m_pkthdr.len; - + if (inlen > DEFLATE_BUF_SIZE) { priv->stats.Errors++; NG_FREE_M(m); @@ -563,7 +563,7 @@ ng_deflate_decompress(node_p node, struct mbuf *m, struct mbuf **resultp) /* Packet is compressed, so decompress. */ if (proto == PROT_COMPD) { priv->stats.FramesComp++; - + /* Check sequence number. */ rseqnum = ntohs(((uint16_t *)(priv->inbuf + offset))[0]); offset += 2; diff --git a/sys/netgraph/ng_pred1.c b/sys/netgraph/ng_pred1.c index 28dff36..e637a9d 100644 --- a/sys/netgraph/ng_pred1.c +++ b/sys/netgraph/ng_pred1.c @@ -235,7 +235,7 @@ ng_pred1_rcvmsg(node_p node, item_p item, hook_p lasthook) if (msg->header.typecookie != NGM_PRED1_COOKIE) ERROUT(EINVAL); - + switch (msg->header.cmd) { case NGM_PRED1_CONFIG: { @@ -272,7 +272,7 @@ ng_pred1_rcvmsg(node_p node, item_p item, hook_p lasthook) if (resp == NULL) ERROUT(ENOMEM); bcopy(&priv->stats, resp->data, - sizeof(struct ng_pred1_stats)); + sizeof(struct ng_pred1_stats)); } if (msg->header.cmd != NGM_PRED1_GET_STATS) @@ -305,7 +305,7 @@ ng_pred1_rcvdata(hook_p hook, item_p item) NG_FREE_ITEM(item); return (ENXIO); } - + NGI_GET_M(item, m); /* Compress. */ if (priv->compress) { @@ -399,7 +399,7 @@ ng_pred1_compress(node_p node, struct mbuf *m, struct mbuf **resultp) NG_FREE_M(m); return (ENOMEM); } - + /* Work with contiguous regions of memory. */ m_copydata(m, 0, inlen, (caddr_t)(priv->inbuf + 2)); @@ -464,7 +464,7 @@ ng_pred1_decompress(node_p node, struct mbuf *m, struct mbuf **resultp) *resultp = NULL; inlen = m->m_pkthdr.len; - + if (inlen > PRED1_BUF_SIZE) { priv->stats.Errors++; NG_FREE_M(m); @@ -475,7 +475,7 @@ ng_pred1_decompress(node_p node, struct mbuf *m, struct mbuf **resultp) m_copydata(m, 0, inlen, (caddr_t)priv->inbuf); priv->stats.InOctets += inlen; - + /* Get initial length value. */ len = priv->inbuf[0] << 8; len += priv->inbuf[1]; @@ -486,7 +486,7 @@ ng_pred1_decompress(node_p node, struct mbuf *m, struct mbuf **resultp) /* Is data compressed or not really? */ if (cf) { NG_FREE_M(m); - + priv->stats.FramesComp++; len1 = Pred1Decompress(node, priv->inbuf + 2, priv->outbuf, inlen - 4, PRED1_BUF_SIZE); |