acl: Rename a local variable.
authorBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2012 00:52:23 +0000 (01:52 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 12 Jan 2012 00:35:49 +0000 (01:35 +0100)
* lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.

ChangeLog
lib/set-mode-acl.c

index ec288e5..3b589df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-01-10  Bruno Haible  <bruno@clisp.org>
 
+       acl: Rename a local variable.
+       * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
+
        acl: Align return values of copy_acl and qcopy_acl.
        * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
        maybe < -1.
index b9d202e..a81b321 100644 (file)
@@ -677,8 +677,8 @@ qset_acl (char const *name, int desc, mode_t mode)
 int
 set_acl (char const *name, int desc, mode_t mode)
 {
-  int r = qset_acl (name, desc, mode);
-  if (r != 0)
+  int ret = qset_acl (name, desc, mode);
+  if (ret != 0)
     error (0, errno, _("setting permissions for %s"), quote (name));
-  return r;
+  return ret;
 }