看板 DFBSD_commit 關於我們 聯絡資訊
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