Clean up libdisk for WARNS=4

Jun Kuriyama kuriyama at
Fri Apr 9 06:59:29 PDT 2004

I did a bad commit for WARNS=4 of libdisk which breaks non-i386
build.  I'm trying to solve this in other archs, too.

o Added many __unused's to avoid warnings on all archs.
o Added file local struct definition in open_ia64_disk.c to avoid
  pointer alignment problem.
o Renamed some variables to resolve conflicts with other enum
  constants (same as in i386).
o Used uint64_t buffer instead of u_char buffer.  This simplifed
  uint64_t array manipulation in latter of this function.  But it
  looks ugly.
o Used ssize_t storage instead of direct comparison of

I'm not sure all of this is done by good way or not.  So I'd like to
be reviewed...

Jun Kuriyama <kuriyama at> // IMG SRC, Inc.
             <kuriyama at> // FreeBSD Project

More information about the freebsd-current mailing list