ubik_ServerInit* take a pathname, which should really be a const.
It already is in many of the callers, some of which remove the
const by casting, the others throw errors.
Make pathName const for all of ubik_ServerInitByInfo, ubik_ServerInit
and ubik_ServerInitCommon.
Update all of our callers to remove the now unecessary casting.
Remove the now uneccessary warning inhibition on vlserver/vlserver.c
Change-Id: I009103dc49e4473eec65ebd75aab727915c26f3c
Reviewed-on: http://gerrit.openafs.org/811
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
uss/uss_kauth.c : all : Des keys, ubik_Call
uss/lex.yy.c : all : Unused symbols
viced/fsprobe.c : all : ubik_Call
-vlserver/vlserver.c : all : GetExtendedCellInfo
vol/salvager.c : all : consts & undefined variable from header
volser/vos.c : all : ubik_Call_New
volser/vol-dump.c : format : afs_sfsize_t
if (servers)
code =
ubik_ServerInit(myHost, htons(AFSCONF_KAUTHPORT), serverList,
- (char *)dbpath, &KA_dbase);
+ dbpath, &KA_dbase);
else
code =
ubik_ServerInitByInfo(myHost, htons(AFSCONF_KAUTHPORT), &cellinfo,
- clones, (char *)dbpath, &KA_dbase);
+ clones, dbpath, &KA_dbase);
if (code) {
afs_com_err(whoami, code, "Ubik init failed");
code =
ubik_ServerInitByInfo(myHost, htons(AFSCONF_PROTPORT), &info, clones,
- (char *)pr_dbaseName, &dbase);
+ pr_dbaseName, &dbase);
if (code) {
afs_com_err(whoami, code, "Ubik init failed");
PT_EXIT(2);
int
ubik_ServerInit(afs_int32 myHost, short myPort, afs_int32 serverList[],
- char *pathName, struct ubik_dbase **dbase)
+ const char *pathName, struct ubik_dbase **dbase)
{
return (0);
}
int
ubik_ServerInitCommon(afs_int32 myHost, short myPort,
struct afsconf_cell *info, char clones[],
- afs_int32 serverList[], char *pathName,
+ afs_int32 serverList[], const char *pathName,
struct ubik_dbase **dbase)
{
register struct ubik_dbase *tdb;
int
ubik_ServerInitByInfo(afs_int32 myHost, short myPort,
struct afsconf_cell *info, char clones[],
- char *pathName, struct ubik_dbase **dbase)
+ const char *pathName, struct ubik_dbase **dbase)
{
afs_int32 code;
*/
int
ubik_ServerInit(afs_int32 myHost, short myPort, afs_int32 serverList[],
- char *pathName, struct ubik_dbase **dbase)
+ const char *pathName, struct ubik_dbase **dbase)
{
afs_int32 code;
struct afsconf_cell;
extern int ubik_ServerInitByInfo(afs_int32 myHost, short myPort,
struct afsconf_cell *info, char clones[],
- char *pathName, struct ubik_dbase **dbase);
+ const char *pathName,
+ struct ubik_dbase **dbase);
extern int ubik_ServerInit(afs_int32 myHost, short myPort,
afs_int32 serverList[],
- char *pathName, struct ubik_dbase **dbase);
+ const char *pathName, struct ubik_dbase **dbase);
extern int ubik_BeginTrans(register struct ubik_dbase *dbase,
afs_int32 transMode, struct ubik_trans **transPtr);
extern int ubik_BeginTransReadAny(register struct ubik_dbase *dbase,
$(RM) -f vlserver.h vl_errors.c; ${COMPILE_ET} -p ${srcdir} vl_errors -h vlserver
vlserver.o: vlserver.c
- $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $<
+
system: install
install: vlserver cnvldb vldb_check libvldb.a vl_opcodes.h vlserver.h \