From owner-svn-src-head@FreeBSD.ORG Thu Jul 4 05:58:54 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7F027CCB; Thu, 4 Jul 2013 05:58:54 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 70A041FC1; Thu, 4 Jul 2013 05:58:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r645wsiX076769; Thu, 4 Jul 2013 05:58:54 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r645wsAM076768; Thu, 4 Jul 2013 05:58:54 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201307040558.r645wsAM076768@svn.freebsd.org> From: Jung-uk Kim Date: Thu, 4 Jul 2013 05:58:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r252684 - head/sys/cam X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2013 05:58:54 -0000 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);