]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
xdr: remove dead code, whitespace from xdr_enum
authorMark Vitale <mvitale@sinenomine.net>
Tue, 5 Jun 2018 18:12:20 +0000 (14:12 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 15 Jun 2018 12:43:31 +0000 (08:43 -0400)
The 'enum sizecheck' declaration has been unused since openafs-ibm-1_0; it is
apparently vestigial from the original XDR code.  Remove it, along with some
extraneous whitespace.

No functional change is incurred by this commit.

Reviewed-on: https://gerrit.openafs.org/13076
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit fdc8adbf0904cbbc0590379c5cb702a15273b40c)

Change-Id: Ie586f210d17169a03143d1bdebb8430e3881e58c
Reviewed-on: https://gerrit.openafs.org/13184
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Joe Gorse <jhgorse@gmail.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/rx/xdr.c

index fa106c8dc87a23bd137c935fa7260fdb535fdcb1..f370723398135773ed36d42775d6398a57ab7e28 100644 (file)
@@ -332,14 +332,11 @@ xdr_bool(XDR * xdrs, bool_t * bp)
 bool_t
 xdr_enum(XDR * xdrs, enum_t * ep)
 {
-    enum sizecheck { SIZEVAL };        /* used to find the size of an enum */
-
     /*
      * enums are treated as ints
      */
 
     return (xdr_int(xdrs, ep));
-
 }
 
 /*