summaryrefslogtreecommitdiff
path: root/lib/readutmp.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-06-05 11:47:37 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-06-05 17:15:11 -0700
commitecabc6b01567522dd542889c353a14f0c2e22f6e (patch)
treebec828ff190c3ff7e6657e191e075138e39fee45 /lib/readutmp.c
parentd6176702c3ffb6c56e6620397470e1b3bd540b10 (diff)
downloadgnulib-ecabc6b01567522dd542889c353a14f0c2e22f6e.tar.gz
acl-permissions: more porting to AIX
* lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]: * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]: Add cast for AIX, whose system calls are declared to accept char * even though the arguments are really char const *. * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]: Rework types to pacify xlc.
Diffstat (limited to 'lib/readutmp.c')
-rw-r--r--lib/readutmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/readutmp.c b/lib/readutmp.c
index 8a3936fb09..10050037fc 100644
--- a/lib/readutmp.c
+++ b/lib/readutmp.c
@@ -97,7 +97,7 @@ read_utmp (char const *file, size_t *n_entries, STRUCT_UTMP **utmp_buf,
Solaris' utmpname returns 1 upon success -- which is contrary
to what the GNU libc version does. In addition, older GNU libc
versions are actually void. */
- UTMP_NAME_FUNCTION (file);
+ UTMP_NAME_FUNCTION ((char *) file);
SET_UTMP_ENT ();