OpenAFS CVS Commit: openafs/src/volser by jaltman
Sun, 07 Dec 2003 17:49:46 EST
Update of /cvs/openafs/src/volser
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-tree/src/volser
volmain.c volprocs.c volser.p.h vos.c vsprocs.c vsutils.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/volser/volmain.c 1.17 1.18
ticket-2618-patches-20031207 openafs/src/volser/volprocs.c 1.31 1.32
ticket-2618-patches-20031207 openafs/src/volser/volser.p.h 1.5 1.6
ticket-2618-patches-20031207 openafs/src/volser/vos.c 1.33 1.34
ticket-2618-patches-20031207 openafs/src/volser/vsprocs.c 1.27 1.28
ticket-2618-patches-20031207 openafs/src/volser/vsutils.c 1.15 1.16