DragonFly-2.3.2.90.g5868e master libexec/dma dma.c dma.h net.c

Simon Schubert corecode at crater.dragonflybsd.org
Thu Jul 16 07:15:36 PDT 2009


commit 5868e44cd9813b03695780d059f28ae46cd29f8c
Author: Simon Schubert <simon.schubert at epfl.ch>
Date:   Thu Jul 9 22:21:26 2009 +0200

    dma: constify bounce reason and avoid strdup
    
    We don't need to care about freeing the bounce reason string, because
    bounce is only called once.  Convert all bounce reason strings to
    const char * and avoid calling strdup() on them.  Dynamic strings from
    asprintf() need some de-const massaging.

Summary of changes:
 libexec/dma/dma.c |   11 +++++------
 libexec/dma/dma.h |    2 +-
 libexec/dma/net.c |   16 +++++++++-------
 3 files changed, 15 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5868e44cd9813b03695780d059f28ae46cd29f8c


-- 
DragonFly BSD source repository





More information about the Commits mailing list