libc/xdr: unsign some loop indexes.

Although usually small, values produced by nitems() are unsigned.
Unsign inxdeing variables related to nitems() macros to avoid
signed vs. unsigned comparisons.
This commit is contained in:
Pedro F. Giffuni 2016-05-06 16:03:40 +00:00
parent eb9f04ddd9
commit 89017bc259
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299183

View File

@ -101,7 +101,7 @@ xdr_float(XDR *xdrs, float *fp)
struct ieee_single is;
struct vax_single vs, *vsp;
struct sgl_limits *lim;
int i;
u_int i;
#endif
switch (xdrs->x_op) {
@ -203,7 +203,7 @@ xdr_double(XDR *xdrs, double *dp)
struct ieee_double id;
struct vax_double vd;
struct dbl_limits *lim;
int i;
u_int i;
#endif
switch (xdrs->x_op) {