DragonFly commits List (threaded) for 2009-07
DragonFly BSD
DragonFly commits List (threaded) for 2009-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Simon Schubert <corecode@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 16 Jul 2009 07:14:02 -0700 (PDT)

commit 5868e44cd9813b03695780d059f28ae46cd29f8c
Author: Simon Schubert <simon.schubert@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



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