Fix des key type issue in bosoprocs
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Wed, 11 Nov 2009 10:19:07 +0000 (10:19 +0000)
committerDerrick Brashear <shadow|account-1000005@unknown>
Wed, 11 Nov 2009 17:16:59 +0000 (09:16 -0800)
The call to afsconf_AddKey was using 'akey' rather than 'akey->data'.
As data is the first element of the akey structure, these are actually
identical, but the compiler sees it as a type error. Fix to use the
correct name, and remove the warning inhibition.

Change-Id: Id4775a836276ddd6f5ae105c298dcc3c68b92145
Reviewed-on: http://gerrit.openafs.org/810
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

README.WARNINGS
src/bozo/Makefile.in
src/bozo/bosoprocs.c

index 2c47034..c151e49 100644 (file)
@@ -46,7 +46,6 @@ afsd/afsd.c          : deprecated    : daemon() marked as deprecated on Darwin
                     : all           : call_syscall missing prototype
 auth/ktc.c           : all (ukernel) : call_syscall doesn't have a prototype
 bozo/bosserver.c     : deprecated    : daemon() marked as deprecated on Darwin
-bozo/bosoprocs.c     : all           : ExtendedCellInfo and des key types
 bozo/bos.c           : all           : DES key types & string consts 
 bozo/bos_util.c      : all           : DES key types
 bucoord/ubik_db_if.c : strict-proto  : Ubik_Call
index 71767ad..286389b 100644 (file)
@@ -89,7 +89,6 @@ cronbnodeops.o: cronbnodeops.c ${INCLS}
 bnode.o: bnode.c ${INCLS}
 
 bosoprocs.o: bosoprocs.c ${INCLS}
-       $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $<
 
 bos.o: bos.c ${INCLS} AFS_component_version_number.o
        $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $<
index d6e6af3..9bd56a0 100644 (file)
@@ -664,7 +664,7 @@ SBOZO_AddKey(struct rx_call *acall, afs_int32 an, struct bozo_key *akey)
     if (DoLogging)
        bozo_Log("%s is executing AddKey\n", caller);
 
-    code = afsconf_AddKey(bozo_confdir, an, akey, 0);
+    code = afsconf_AddKey(bozo_confdir, an, akey->data, 0);
     if (code == AFSCONF_KEYINUSE)
        code = BZKEYINUSE;      /* Unique code for afs rpc calls */
   fail: