Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netsmb Tabify.



details:   https://anonhg.NetBSD.org/src/rev/3c71a721d6e5
branches:  trunk
changeset: 779226:3c71a721d6e5
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Sat May 12 01:40:37 2012 +0000

description:
Tabify.

diffstat:

 sys/netsmb/subr_mchain.c |  84 ++++++++++++++++++++++++------------------------
 1 files changed, 42 insertions(+), 42 deletions(-)

diffs (127 lines):

diff -r 690b9da0a9e7 -r 3c71a721d6e5 sys/netsmb/subr_mchain.c
--- a/sys/netsmb/subr_mchain.c  Fri May 11 21:40:49 2012 +0000
+++ b/sys/netsmb/subr_mchain.c  Sat May 12 01:40:37 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_mchain.c,v 1.21 2012/05/11 14:51:39 nakayama Exp $        */
+/*     $NetBSD: subr_mchain.c,v 1.22 2012/05/12 01:40:37 nakayama Exp $        */
 
 /*
  * Copyright (c) 2000, 2001 Boris Popov
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_mchain.c,v 1.21 2012/05/11 14:51:39 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_mchain.c,v 1.22 2012/05/12 01:40:37 nakayama Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -53,51 +53,51 @@
 static struct mbuf *
 m_getm(struct mbuf *m, size_t len, int how, int type)
 {
-        struct mbuf *top, *tail, *mp, *mtail = NULL;
+       struct mbuf *top, *tail, *mp, *mtail = NULL;
 
-        mp = m_get(how, type);
-        if (mp == NULL)
-                return (NULL);
-        else if (len > MINCLSIZE) {
-                m_clget(mp, how);
-                if ((mp->m_flags & M_EXT) == 0) {
-                        m_free(mp);
-                        return (NULL);
-                }
-        }
-        mp->m_len = 0;
-        len -= min(len, M_TRAILINGSPACE(mp));
+       mp = m_get(how, type);
+       if (mp == NULL)
+               return (NULL);
+       else if (len > MINCLSIZE) {
+               m_clget(mp, how);
+               if ((mp->m_flags & M_EXT) == 0) {
+                       m_free(mp);
+                       return (NULL);
+               }
+       }
+       mp->m_len = 0;
+       len -= min(len, M_TRAILINGSPACE(mp));
 
-        if (m != NULL)
-                for (mtail = m; mtail->m_next != NULL; mtail = mtail->m_next);
-        else
-                m = mp;
+       if (m != NULL)
+               for (mtail = m; mtail->m_next != NULL; mtail = mtail->m_next);
+       else
+               m = mp;
 
-        top = tail = mp;
-        while (len > 0) {
-                mp = m_get(how, type);
-                if (mp == NULL)
-                        goto failed;
+       top = tail = mp;
+       while (len > 0) {
+               mp = m_get(how, type);
+               if (mp == NULL)
+                       goto failed;
 
-                tail->m_next = mp;
-                tail = mp;
-                if (len > MINCLSIZE) {
-                        m_clget(mp, how);
-                        if ((mp->m_flags & M_EXT) == 0)
-                                goto failed;
-                }
+               tail->m_next = mp;
+               tail = mp;
+               if (len > MINCLSIZE) {
+                       m_clget(mp, how);
+                       if ((mp->m_flags & M_EXT) == 0)
+                               goto failed;
+               }
 
-                mp->m_len = 0;
-                len -= min(len, M_TRAILINGSPACE(mp));
-        }
+               mp->m_len = 0;
+               len -= min(len, M_TRAILINGSPACE(mp));
+       }
 
-        if (mtail != NULL)
-                mtail->m_next = top;
-        return (m);
+       if (mtail != NULL)
+               mtail->m_next = top;
+       return (m);
 
 failed:
-        m_freem(top);
-        return (NULL);
+       m_freem(top);
+       return (NULL);
 }
 
 
@@ -344,7 +344,7 @@
                uiop->uio_offset += left;
                uiop->uio_resid -= left;
                uiop->uio_iov->iov_base =
-                        (char *)uiop->uio_iov->iov_base + left;
+                       (char *)uiop->uio_iov->iov_base + left;
                uiop->uio_iov->iov_len -= left;
                size -= left;
        }
@@ -597,8 +597,8 @@
                        return error;
                uiop->uio_offset += left;
                uiop->uio_resid -= left;
-                uiop->uio_iov->iov_base =
-                                (char *)uiop->uio_iov->iov_base + left;
+               uiop->uio_iov->iov_base =
+                               (char *)uiop->uio_iov->iov_base + left;
                uiop->uio_iov->iov_len -= left;
                size -= left;
        }



Home | Main Index | Thread Index | Old Index