Make it little bit more C++ friendly. This explicit casting fixes some

ports, emulators/virtualbox-ose and sysutils/smartmontools for example.
This commit is contained in:
Jung-uk Kim 2013-07-04 05:58:53 +00:00
parent 3eebd44d0c
commit 54eb21db1f

View File

@ -1306,7 +1306,7 @@ cam_set_ccbstatus(union ccb *ccb, cam_status status)
static __inline cam_status
cam_ccb_status(union ccb *ccb)
{
return (ccb->ccb_h.status & CAM_STATUS_MASK);
return ((cam_status)(ccb->ccb_h.status & CAM_STATUS_MASK));
}
void cam_calc_geometry(struct ccb_calc_geometry *ccg, int extended);