From cbe83cb1a12fddc63c1775243c47fb43da40f9c1 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Wed, 11 Nov 2009 09:10:36 +0000 Subject: [PATCH] Fix warnings from afsconf_SetExtendedCellInfo If a is declared as an array, then a == &a. However, the compiler still gives a type warning when usign the & form, as the types no longer match. 5f720faab920a1007327de415ceaf187c16fdbe6 fixed this problem for calls to GetExtendedCellInfo - do the same for the corresponding Set calls. Change-Id: I8204afe7df0c0db1d059cb3f6ab61eff1cdf9140 Reviewed-on: http://gerrit.openafs.org/808 Tested-by: Derrick Brashear Reviewed-by: Derrick Brashear --- src/bozo/bosoprocs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bozo/bosoprocs.c b/src/bozo/bosoprocs.c index 4794f28cc2..d6e6af3ddc 100644 --- a/src/bozo/bosoprocs.c +++ b/src/bozo/bosoprocs.c @@ -398,7 +398,7 @@ SBOZO_SetCellName(struct rx_call *acall, char *aname) strcpy(tcell.name, aname); code = afsconf_SetExtendedCellInfo(bozo_confdir, AFSDIR_SERVER_ETC_DIRPATH, - &tcell, &clones); + &tcell, clones); fail: osi_auditU(acall, BOS_SetCellEvent, code, AUD_STR, aname, AUD_END); @@ -501,7 +501,7 @@ SBOZO_DeleteCellHost(struct rx_call *acall, char *aname) memset(tcell.hostName[which], 0, MAXHOSTCHARS); code = afsconf_SetExtendedCellInfo(bozo_confdir, AFSDIR_SERVER_ETC_DIRPATH, - &tcell, &clones); + &tcell, clones); fail: osi_auditU(acall, BOS_DeleteHostEvent, code, AUD_STR, aname, AUD_END); @@ -582,7 +582,7 @@ SBOZO_AddCellHost(struct rx_call *acall, char *aname) clones[which] = isClone; code = afsconf_SetExtendedCellInfo(bozo_confdir, AFSDIR_SERVER_ETC_DIRPATH, - &tcell, &clones); + &tcell, clones); fail: osi_auditU(acall, BOS_AddHostEvent, code, AUD_STR, aname, AUD_END);