OpenAFS CVS Commit: openafs/src/butc by jaltman
Sun, 07 Dec 2003 17:49:23 EST
Update of /cvs/openafs/src/butc
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-tree/src/butc
butc_xbsa.c dbentries.c dump.c error_macros.h list.c lwps.c
flexelint patches for prototype handling from Joe Beuhler
This patch adds a bunch of missing prototypes, makes various
corrections to global prototypes, and removes global declarations that
are not needed.
One set of added prototypes is commented out because it applies to
some printf-like functions that are implemented the way it used to be
done before varargs existed, and they need to be unprototyped or the
code will fail to compile. (There are a number of functions in the
OpenAFS code that need to be converted to use varargs...)
There is one place of note in src/WINNT/afsd/fs.c where typedefs for
afs_int32 and afs_uint32 conflict with afs/stds.h. I just added a
note to that effect.
Prototypes in src/WINNT/afsd/fs.c are incorrect for Windows NT. I
don't know whether the return type involved changes from platform to
platform -- they come from .xg files.
Some prototypes are now commented out or #ifdef'd to match the code
that uses them.
Some global variables conflict between modules and have been made static.
The bufferBlock variable was of two completely different types...
In src/config/stds.h, I changed the declaration of afs_intmax_t to
reflect the fact that the Windows platform supports 64 bit integers.
This may be incorrect semantically, but I believe it is needed for the
%llx format to match afs_intmax_t arguments (for printing of inodes
mainly, I believe).
There were two different declarations for the rxkad_stats structure --
I synced them up.
Removed the conflicting typedefs from src/WINNT/afsd/fs.c
Removed the changes to src/config/stds.h. Added declaration of
AFS_64BIT_CLIENT to src/config/NTMakefile.i386_nt40 instead.
Do not remove unused variables which are defintions of data type
values. Instead comment them out to avoid space utilization and
--- DELTA config follows ---
ticket-2618-patches-20031207 openafs/src/butc/butc_xbsa.c 1.5 1.6
ticket-2618-patches-20031207 openafs/src/butc/dbentries.c 1.7 1.8
ticket-2618-patches-20031207 openafs/src/butc/dump.c 1.15 1.16
ticket-2618-patches-20031207 openafs/src/butc/error_macros.h 1.2 1.3
ticket-2618-patches-20031207 openafs/src/butc/list.c 1.7 1.8
ticket-2618-patches-20031207 openafs/src/butc/lwps.c 1.10 1.11
ticket-2618-patches-20031207 openafs/src/butc/recoverDb.c 1.9 1.10
ticket-2618-patches-20031207 openafs/src/butc/tcprocs.c 1.10 1.11