[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] lib/acl-internal.h: Apply pure attribute to two functions
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] lib/acl-internal.h: Apply pure attribute to two functions |
Date: |
Mon, 02 Jun 2014 00:33:14 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 06/01/2014 11:39 PM, Ben Walton wrote:
> * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Mark
>
> Signed-off-by: Ben Walton <address@hidden>
> ---
> lib/acl-internal.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/acl-internal.h b/lib/acl-internal.h
> index fdffe64..b238006 100644
> --- a/lib/acl-internal.h
> +++ b/lib/acl-internal.h
> @@ -174,14 +174,14 @@ extern int acl_access_nontrivial (acl_t);
>
> /* Return 1 if the given ACL is non-trivial.
> Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */
> -extern int acl_nontrivial (int count, aclent_t *entries);
> +extern int acl_nontrivial (int count, aclent_t *entries) _GL_ATTRIBUTE_PURE;
>
> # ifdef ACE_GETACL /* Solaris 10 */
>
> /* Test an ACL retrieved with ACE_GETACL.
> Return 1 if the given ACL, consisting of COUNT entries, is non-trivial.
> Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */
> -extern int acl_ace_nontrivial (int count, ace_t *entries);
> +extern int acl_ace_nontrivial (int count, ace_t *entries) _GL_ATTRIBUTE_PURE;
>
> /* Definitions for when the built executable is executed on Solaris 10
> (newer version) or Solaris 11. */
>
Pushed.
thanks,
Pádraig.