Browse Source

Sync with gnulib ecabc6b01567522dd542889c353a14f0c2e22f6e.

* src/filemanager/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
Rework types to pacify xlc.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 9 years ago
parent
commit
9fa8174227
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/filemanager/mountlist.c

+ 5 - 3
src/filemanager/mountlist.c

@@ -1192,18 +1192,20 @@ read_file_system_list (int need_fs_type)
 #ifdef MOUNTED_VMOUNT           /* AIX.  */
     {
         int bufsize;
-        char *entries, *thisent;
+        void *entries;
+        char *thisent;
         struct vmount *vmp;
         int n_entries;
         int i;
 
         /* Ask how many bytes to allocate for the mounted file system info.  */
-        if (mntctl (MCTL_QUERY, sizeof (bufsize), (struct vmount *) &bufsize) != 0)
+        entries = &bufsize;
+        if (mntctl (MCTL_QUERY, sizeof (bufsize), entries) != 0)
             return NULL;
         entries = g_malloc (bufsize);
 
         /* Get the list of mounted file systems.  */
-        n_entries = mntctl (MCTL_QUERY, bufsize, (struct vmount *) entries);
+        n_entries = mntctl (MCTL_QUERY, bufsize, entries);
         if (n_entries < 0)
         {
             int saved_errno = errno;