Fix warnings from afsconf_SetExtendedCellInfo
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Wed, 11 Nov 2009 09:10:36 +0000 (09:10 +0000)
committerDerrick Brashear <shadow|account-1000005@unknown>
Wed, 11 Nov 2009 15:37:27 +0000 (07:37 -0800)
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 <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/bozo/bosoprocs.c

index 4794f28..d6e6af3 100644 (file)
@@ -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);