Remove warnings from supergroups code on x86
authorRuss Allbery <rra@stanford.edu>
Thu, 31 Dec 2009 00:22:37 +0000 (16:22 -0800)
committerDerrick Brashear <shadow|account-1000005@unknown>
Thu, 31 Dec 2009 13:10:49 +0000 (05:10 -0800)
commit4d6d7866689a2c005a055c580b8a54d7c9412386
tree095b432654e65653fbee0dc6edd57ed2cf7c3b19
parent1526593621f78efaf2b37e4ac25a2944b6099920
Remove warnings from supergroups code on x86

Prototype functions where necessary, remove unused variables, fix
mismatches of data types (char * != void *), initialize variables the
compiler can't tell are initialized, compare integers against 0 and
not NULL, and wrap assignments used as conditions in an explicit
comparison.

This removes all warnings that fail --enable-checking on x86 with
--enable-supergroups.  64-bit will still have warnings.

Change-Id: I5ab6e317a280bea29cb44b97f2805a00e387577f
Reviewed-on: http://gerrit.openafs.org/1050
Tested-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/ptserver/db_verify.c
src/ptserver/map.c
src/ptserver/ptprocs.c
src/ptserver/ptprototypes.h
src/ptserver/ptutils.c