FreeBSD/lib/libcam/camlib.c
/*
 * Copy a CAM device structure.
 */
Copy a CAM device structure.
Copy a CAM device structure .
void
cam_device_copy(struct cam_device *src, struct cam_device *dst)
{
	char *func_name = "cam_device_copy";
	if (src == NULL) {
		snprintf(cam_errbuf, CAM_ERRBUF_SIZE,
			 "%s: source device struct was NULL", func_name);
		return;
	}
	if (dst == NULL) {
		snprintf(cam_errbuf, CAM_ERRBUF_SIZE,
			 "%s: destination device struct was NULL", func_name);
		return;
	}
	bcopy(src, dst, sizeof(struct cam_device));
}
void cam_device_copy ( struct cam_device * src , struct cam_device * dst ) { char * func_name = " " ; if ( src == NULL ) { snprintf ( cam_errbuf , CAM_ERRBUF_SIZE , " " , func_name ) ; return ; } if ( dst == NULL ) { snprintf ( cam_errbuf , CAM_ERRBUF_SIZE , " " , func_name ) ; return ; } bcopy ( src , dst , sizeof ( struct cam_device ) ) ; }
Copy a CAM device structure.
Copy a CAM device structure .