Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jul 2013 05:58:54 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252684 - head/sys/cam
Message-ID:  <201307040558.r645wsAM076768@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Thu Jul  4 05:58:53 2013
New Revision: 252684
URL: http://svnweb.freebsd.org/changeset/base/252684

Log:
  Make it little bit more C++ friendly.  This explicit casting fixes some
  ports, emulators/virtualbox-ose and sysutils/smartmontools for example.

Modified:
  head/sys/cam/cam_ccb.h

Modified: head/sys/cam/cam_ccb.h
==============================================================================
--- head/sys/cam/cam_ccb.h	Thu Jul  4 05:53:05 2013	(r252683)
+++ head/sys/cam/cam_ccb.h	Thu Jul  4 05:58:53 2013	(r252684)
@@ -1306,7 +1306,7 @@ cam_set_ccbstatus(union ccb *ccb, cam_st
 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307040558.r645wsAM076768>