Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2013 23:05:14 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r258151 - head/sys/sys
Message-ID:  <201311142305.rAEN5Elj029515@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Thu Nov 14 23:05:13 2013
New Revision: 258151
URL: http://svnweb.freebsd.org/changeset/base/258151

Log:
  Style.
  
  MFC after:	3 days

Modified:
  head/sys/sys/capability.h

Modified: head/sys/sys/capability.h
==============================================================================
--- head/sys/sys/capability.h	Thu Nov 14 23:02:49 2013	(r258150)
+++ head/sys/sys/capability.h	Thu Nov 14 23:05:13 2013	(r258151)
@@ -277,7 +277,7 @@ bool cap_rights_contains(const cap_right
 
 #include <sys/systm.h>
 
-#define IN_CAPABILITY_MODE(td) ((td->td_ucred->cr_flags & CRED_FLAG_CAPMODE) != 0)
+#define IN_CAPABILITY_MODE(td) (((td)->td_ucred->cr_flags & CRED_FLAG_CAPMODE) != 0)
 
 struct filedesc;
 
@@ -328,8 +328,9 @@ int cap_rights_limit(int fd, const cap_r
 /*
  * Returns capability rights for the given descriptor.
  */
-#define	cap_rights_get(fd, rights)	__cap_rights_get(CAP_RIGHTS_VERSION, (fd), (rights))
-int __cap_rights_get(int version, int fd, cap_rights_t *rightsp);
+#define	cap_rights_get(fd, rights)					\
+	__cap_rights_get(CAP_RIGHTS_VERSION, (fd), (rights))
+int __cap_rights_get(int version, int fd, cap_rights_t *rights);
 /*
  * Limits allowed ioctls for the given descriptor.
  */



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