git: sys/dev/disk/dm: Fix/refactor alloc/free functions [4/6]

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Nov 12 07:09:36 PST 2015


commit efaf91a7347ada68a8b9a5037f0ea8fc45034b9f
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Wed Nov 11 19:51:21 2015 +0900

    sys/dev/disk/dm: Fix/refactor alloc/free functions [4/6]
    
    dm_target_alloc() takes char *name, but does nothing with it.
    Add strlcpy and remove strlcpy from each target's init().

Summary of changes:
 sys/dev/disk/dm/dm_target.c                         | 12 +++++++++++-
 sys/dev/disk/dm/dm_target_error.c                   |  1 -
 sys/dev/disk/dm/dm_target_zero.c                    |  1 -
 sys/dev/disk/dm/targets/crypt/dm_target_crypt.c     |  1 -
 sys/dev/disk/dm/targets/delay/dm_target_delay.c     |  1 -
 sys/dev/disk/dm/targets/linear/dm_target_linear.c   |  1 -
 sys/dev/disk/dm/targets/striped/dm_target_striped.c |  1 -
 7 files changed, 11 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/efaf91a7347ada68a8b9a5037f0ea8fc45034b9f


-- 
DragonFly BSD source repository



More information about the Commits mailing list