rx-xdr_rec-type-error-20080203
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 4 Feb 2008 04:05:00 +0000 (04:05 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 4 Feb 2008 04:05:00 +0000 (04:05 +0000)
LICENSE MIT

x_inline second parameter is unsigned

src/rx/xdr_rec.c

index ad14646..ff2a453 100644 (file)
@@ -108,7 +108,7 @@ static bool_t xdrrec_putbytes(XDR * xdrs, register caddr_t addr,
                              register u_int len);
 static u_int xdrrec_getpos(register XDR * xdrs);
 static bool_t xdrrec_setpos(register XDR * xdrs, u_int pos);
-static afs_int32 *xdrrec_inline(register XDR * xdrs, int len);
+static afs_int32 *xdrrec_inline(register XDR * xdrs, u_int len);
 static void xdrrec_destroy(register XDR * xdrs);
 static bool_t flush_out(register RECSTREAM * rstrm, bool_t eor);
 static bool_t fill_input_buf(register RECSTREAM * rstrm);
@@ -335,7 +335,7 @@ xdrrec_setpos(register XDR * xdrs, u_int pos)
 }
 
 static afs_int32 *
-xdrrec_inline(register XDR * xdrs, int len)
+xdrrec_inline(register XDR * xdrs, u_int len)
 {
     register RECSTREAM *rstrm = (RECSTREAM *) xdrs->x_private;
     afs_int32 *buf = NULL;