From 0d1513aa4bb94ab87000b3ea5025fa408f91ac8f Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Mon, 15 Jan 2007 05:55:56 +0000 Subject: [PATCH] Whitespace cleanup. Checked with: cvs diff -b --- sys/netgraph/ng_deflate.c | 14 +++++++------- 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 eacaa228d09b..84609e32b71f 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 28dff36b4d3a..e637a9dfa730 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);