Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 May 2011 11:04:50 +0000 (UTC)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern subr_sbuf.c
Message-ID:  <201105171104.p4HB4vVv048104@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
phk         2011-05-17 11:04:50 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             subr_sbuf.c 
  Log:
  SVN rev 222015 on 2011-05-17 11:04:50Z by phk
  
  Use memset() instead of bzero() and memcpy() instead of bcopy(), there
  is no relevant difference for sbufs, and it increases portability of
  the source code.
  
  Split the actual initialization of the sbuf into a separate local
  function, so that certain static code checkers can understand
  what sbuf_new() does, thus eliminating on silly annoyance of
  MISRA compliance testing.
  
  Contributed by:         An anonymous company in the last business I
                          expected sbufs to invade.
  
  Revision  Changes    Path
  1.46      +43 -26    src/sys/kern/subr_sbuf.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105171104.p4HB4vVv048104>