svn commit: r258151 - head/sys/sys
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Nov 14 23:05:14 UTC 2013
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.
*/
More information about the svn-src-head
mailing list