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

看板DFBSD_commit作者時間16年前 (2009/07/17 02:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1ANsjvrs (DFBSD_commit)