aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/xdr/xdr_float.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-05-06 16:03:40 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-05-06 16:03:40 +0000
commit89017bc25939b3bf37be752eb5758ba24396fee5 (patch)
tree446bdf4fb06602ab4d5f53df242ab688649d1371 /lib/libc/xdr/xdr_float.c
parenteb9f04ddd923fc0d17ddff3e22c93df294e5f633 (diff)
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.
Notes
Notes: svn path=/head/; revision=299183
Diffstat (limited to 'lib/libc/xdr/xdr_float.c')
-rw-r--r--lib/libc/xdr/xdr_float.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/xdr/xdr_float.c b/lib/libc/xdr/xdr_float.c
index cc4dd2d9f3ea..1f16a4e44da7 100644
--- a/lib/libc/xdr/xdr_float.c
+++ b/lib/libc/xdr/xdr_float.c
@@ -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) {