* include/am_xdr_func.h: cannot have field-less structure; put a
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 30 Jul 2004 21:13:07 +0000 (21:13 +0000)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 30 Jul 2004 21:13:07 +0000 (21:13 +0000)
dummy field in.

* conf/autofs/autofs_solaris_v2_v3.c (xdr_autofs_rddirargs): cast
2nd arg of xdr_u_int to a u_int*, not int*.
(autofs_mount_2_req): don't use C++ // comments.

ChangeLog
conf/autofs/autofs_solaris_v2_v3.c
include/am_xdr_func.h

index 76b3cfb26e7463eb714d602a5f59093a765b5b38..2cbd0d9228133bbbfd4ea1cf634441fe4ccc00c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2004-07-30  Erez Zadok  <ezk@play.cs.columbia.edu>
+
+       * include/am_xdr_func.h: cannot have field-less structure; put a
+       dummy field in.
+
+       * conf/autofs/autofs_solaris_v2_v3.c (xdr_autofs_rddirargs): cast
+       2nd arg of xdr_u_int to a u_int*, not int*.
+       (autofs_mount_2_req): don't use C++ // comments.
+
 2004-07-30  Erez Zadok  <ezk@cs.sunysb.edu>
 
        * m4/macros/{try_compile_anyfs,check_field}.m4: include
index 664b6ba2d089ed303e354b2225808d7581999290..c18e40a90751a19c29e06af21753d647e581227d 100644 (file)
@@ -38,7 +38,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: autofs_solaris_v2_v3.c,v 1.37 2004/01/06 03:56:20 ezk Exp $
+ * $Id: autofs_solaris_v2_v3.c,v 1.38 2004/07/30 21:13:07 ezk Exp $
  *
  */
 
@@ -400,9 +400,9 @@ xdr_autofs_rddirargs(XDR *xdrs, autofs_rddirargs *objp)
 {
   if (!xdr_string(xdrs, &objp->rda_map, AUTOFS_MAXPATHLEN))
     return (FALSE);
-  if (!xdr_u_int(xdrs, (int *) &objp->rda_offset))
+  if (!xdr_u_int(xdrs, (u_int *) &objp->rda_offset))
     return (FALSE);
-  if (!xdr_u_int(xdrs, (int *) &objp->rda_count))
+  if (!xdr_u_int(xdrs, (u_int *) &objp->rda_count))
     return (FALSE);
   return (TRUE);
 }
@@ -570,7 +570,7 @@ autofs_mount_2_req(autofs_lookupargs *m,
   mf = mp->am_mnt;
   new_mp = mf->mf_ops->lookup_child(mp, m->name + m->isdirect, &err, VLOOK_CREATE);
   if (new_mp && err < 0) {
-    //new_mp->am_transp = transp;
+    /* new_mp->am_transp = transp; */
     new_mp = mf->mf_ops->mount_child(new_mp, &err);
   }
   if (new_mp == NULL) {
index 2c856ca973db32b23e7a49850f6d6df37e441464..7d1803a01cb4f5987367c8eb88b6b8ee9b3c6bfc 100644 (file)
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: am_xdr_func.h,v 1.14 2004/01/06 03:56:20 ezk Exp $
+ * $Id: am_xdr_func.h,v 1.15 2004/07/30 21:13:07 ezk Exp $
  *
  */
 
@@ -148,6 +148,8 @@ typedef struct am_LOOKUP3resok am_LOOKUP3resok;
 struct am_LOOKUP3resfail {
 #if 0
        post_op_attr dir_attributes;
+#else
+       char dummy;             /* cannot have an empty declaration */
 #endif
 };
 typedef struct am_LOOKUP3resfail am_LOOKUP3resfail;