about summary refs log tree commit diff
path: root/nis/ypupdate_xdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'nis/ypupdate_xdr.c')
-rw-r--r--nis/ypupdate_xdr.c46
1 files changed, 19 insertions, 27 deletions
diff --git a/nis/ypupdate_xdr.c b/nis/ypupdate_xdr.c
index 53624337ab..e4027b07df 100644
--- a/nis/ypupdate_xdr.c
+++ b/nis/ypupdate_xdr.c
@@ -31,43 +31,35 @@
  * Copyright (c) 1986, 1990 by Sun Microsystems, Inc.
  */
 
-/* from @(#)ypupdate_prot.x     1.3 91/03/11 TIRPC 1.0 */
-
-/*
- * Compiled from ypupdate_prot.x using rpcgen
- * This is NOT source code!
- * DO NOT EDIT THIS FILE!
- */
-
-
 #include <rpcsvc/ypupd.h>
 
-bool_t 
-xdr_yp_buf (XDR * xdrs, yp_buf * objp)
+bool_t
+xdr_yp_buf (XDR *xdrs, yp_buf *objp)
 {
-  if (!xdr_bytes (xdrs, (char **) &objp->yp_buf_val, (u_int *) & objp->yp_buf_len, MAXYPDATALEN))
-    return (FALSE);
-  return (TRUE);
+  if (!xdr_bytes (xdrs, (char **) &objp->yp_buf_val,
+		  (u_int *) &objp->yp_buf_len, ~0))
+    return FALSE;
+  return TRUE;
 }
 
-bool_t 
-xdr_ypupdate_args (XDR * xdrs, ypupdate_args * objp)
+bool_t
+xdr_ypupdate_args (XDR *xdrs, ypupdate_args *objp)
 {
-  if (!xdr_string (xdrs, &objp->mapname, MAXMAPNAMELEN))
-    return (FALSE);
+  if (!xdr_string (xdrs, &objp->mapname, ~0))
+    return FALSE;
   if (!xdr_yp_buf (xdrs, &objp->key))
-    return (FALSE);
+    return FALSE;
   if (!xdr_yp_buf (xdrs, &objp->datum))
-    return (FALSE);
-  return (TRUE);
+    return FALSE;
+  return TRUE;
 }
 
-bool_t 
-xdr_ypdelete_args (XDR * xdrs, ypdelete_args * objp)
+bool_t
+xdr_ypdelete_args (XDR *xdrs, ypdelete_args *objp)
 {
-  if (!xdr_string (xdrs, &objp->mapname, MAXMAPNAMELEN))
-    return (FALSE);
+  if (!xdr_string (xdrs, &objp->mapname, ~0))
+    return FALSE;
   if (!xdr_yp_buf (xdrs, &objp->key))
-    return (FALSE);
-  return (TRUE);
+    return FALSE;
+  return TRUE;
 }