]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
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 2c470348553c844414d09e35b54b9dcfe049ffc9..c151e49052542f6c828d11356c7ab81b97a2abb1 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 71767ad46a5e3b302336f68a0febf6bd42581d51..286389b30af1faf53772b1e8e9aab524f5f4d008 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 d6e6af3ddcdecf20e036534f7f9f5453fe8d2db8..9bd56a0b2c9495664c4bf05d4de52485aeb94ee2 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: