From 5ba8c03a98dc5081003eb665bc2b19c87ee7ec5d Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 2 Jun 2011 08:39:13 +0000 Subject: [PATCH] Gave up use of bzero() in FreeBSD system adapters --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/sg-freebsd-port.c | 2 +- libburn/sg-freebsd.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 528008d..25b54be 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.05.31.103124" +#define Cdrskin_timestamP "2011.06.02.083808" diff --git a/libburn/sg-freebsd-port.c b/libburn/sg-freebsd-port.c index 0ed62ff..ba016ba 100644 --- a/libburn/sg-freebsd-port.c +++ b/libburn/sg-freebsd-port.c @@ -160,7 +160,7 @@ static int sg_init_enumerator(burn_drive_enumerator_t *idx) return -1; } - bzero(&(idx->ccb), sizeof(union ccb)); + memset(&(idx->ccb), 0, sizeof(union ccb)); idx->ccb.ccb_h.path_id = CAM_XPT_PATH_ID; idx->ccb.ccb_h.target_id = CAM_TARGET_WILDCARD; diff --git a/libburn/sg-freebsd.c b/libburn/sg-freebsd.c index 23c14ed..033526f 100644 --- a/libburn/sg-freebsd.c +++ b/libburn/sg-freebsd.c @@ -175,7 +175,7 @@ static int sg_init_enumerator(burn_drive_enumerator_t *idx_) return -1; } - bzero(&(idx->ccb), sizeof(union ccb)); + memset(&(idx->ccb), 0, sizeof(union ccb)); idx->ccb.ccb_h.path_id = CAM_XPT_PATH_ID; idx->ccb.ccb_h.target_id = CAM_TARGET_WILDCARD;