* libamu/mount_fs.c (compute_nfs_args): cast &(fh3.fh3_u.data) and
authorIon Badulescu <ib42@cs.columbia.edu>
Thu, 23 Jan 2003 18:29:53 +0000 (18:29 +0000)
committerIon Badulescu <ib42@cs.columbia.edu>
Thu, 23 Jan 2003 18:29:53 +0000 (18:29 +0000)
        &(fhp->v2.fhs_fh) to (voidp) to avoid warnings on systems that
        want them to be signed or unsigned char *.

ChangeLog
libamu/mount_fs.c

index 233b6d8dcab963374404e2c9b36f649d32e8b8f3..cbdadb8382508e4b6cd2929ede480f8548495dfc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-23  Ion Badulescu  <ionut@nicu.badula.org>
+
+       * libamu/mount_fs.c (compute_nfs_args): cast &(fh3.fh3_u.data) and
+       &(fhp->v2.fhs_fh) to (voidp) to avoid warnings on systems that
+       want them to be signed or unsigned char *.
+
 2003-01-23  Ion Badulescu  <ion@guppy.limebrokerage.com>
 
        * include/am_defs.h: make sure _P1003_1B_VISIBLE is defined when
index 6648a3c65cf76f63a8d8a69047850d72e4c240b9..6f676c018a1b00e8034af5295f377a1580bed107 100644 (file)
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: mount_fs.c,v 1.29 2002/12/27 22:44:10 ezk Exp $
+ * $Id: mount_fs.c,v 1.30 2003/01/23 18:29:54 ib42 Exp $
  *
  */
 
@@ -389,7 +389,7 @@ compute_nfs_args(nfs_args_t *nap, mntent_t *mntp, int genflags, struct netconfig
      * the file handle set in nfs_args be plain bytes, and not
      * include the length field.
      */
-    NFS_FH_DREF(nap->NFS_FH_FIELD, &(fh3.fh3_u.data));
+    NFS_FH_DREF(nap->NFS_FH_FIELD, (voidp) &(fh3.fh3_u.data));
 # else /* not defined(HAVE_NFS_ARGS_T_FHSIZE) || defined(HAVE_NFS_ARGS_T_FH_LEN) */
     NFS_FH_DREF(nap->NFS_FH_FIELD, &fh3);
 # endif /* not defined(HAVE_NFS_ARGS_T_FHSIZE) || defined(HAVE_NFS_ARGS_T_FH_LEN) */
@@ -401,7 +401,7 @@ compute_nfs_args(nfs_args_t *nap, mntent_t *mntp, int genflags, struct netconfig
 # endif /* MNT2_NFS_OPT_VER3 */
   } else
 #endif /* HAVE_FS_NFS3 */
-    NFS_FH_DREF(nap->NFS_FH_FIELD, &(fhp->v2.fhs_fh));
+    NFS_FH_DREF(nap->NFS_FH_FIELD, (voidp) &(fhp->v2.fhs_fh));
 
 #ifdef HAVE_NFS_ARGS_T_FHSIZE
 # ifdef HAVE_FS_NFS3