dma: constify bounce reason and avoid strdup
authorSimon Schubert <simon.schubert@epfl.ch>
Thu, 9 Jul 2009 20:21:26 +0000 (22:21 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 16 Jul 2009 14:13:06 +0000 (16:13 +0200)
commit5868e44cd9813b03695780d059f28ae46cd29f8c
tree5fbbb7fde2bb8f9c9dabc4aea5e42c2b3d36853c
parent98dfc1193e4166417eda58d5e02fb180928d9e28
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.
libexec/dma/dma.c
libexec/dma/dma.h
libexec/dma/net.c