diff options
Diffstat (limited to 'freebsd/lib/libc/xdr/xdr.c')
-rw-r--r-- | freebsd/lib/libc/xdr/xdr.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/freebsd/lib/libc/xdr/xdr.c b/freebsd/lib/libc/xdr/xdr.c index ccb8d107..561f179b 100644 --- a/freebsd/lib/libc/xdr/xdr.c +++ b/freebsd/lib/libc/xdr/xdr.c @@ -522,16 +522,14 @@ xdr_enum(xdrs, ep) XDR *xdrs; enum_t *ep; { - enum sizecheck { SIZEVAL }; /* used to find the size of an enum */ - /* * enums are treated as ints */ - /* LINTED */ if (sizeof (enum sizecheck) == sizeof (long)) { + /* LINTED */ if (sizeof (enum_t) == sizeof (long)) { return (xdr_long(xdrs, (long *)(void *)ep)); - } else /* LINTED */ if (sizeof (enum sizecheck) == sizeof (int)) { + } else /* LINTED */ if (sizeof (enum_t) == sizeof (int)) { return (xdr_int(xdrs, (int *)(void *)ep)); - } else /* LINTED */ if (sizeof (enum sizecheck) == sizeof (short)) { + } else /* LINTED */ if (sizeof (enum_t) == sizeof (short)) { return (xdr_short(xdrs, (short *)(void *)ep)); } else { return (FALSE); |