mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 08:50:17 +00:00
windows-callback-interface-updates-20020611
make callback interface like unix
This commit is contained in:
parent
3a1c622117
commit
eb8c33d299
@ -435,14 +435,14 @@ int SRXAFSCB_GetCellServDB(
|
||||
struct rx_call *a_call,
|
||||
afs_int32 a_index,
|
||||
char **a_name,
|
||||
afs_int32 *a_hosts)
|
||||
serverList *a_hosts)
|
||||
{
|
||||
char *t_name;
|
||||
|
||||
t_name = (char *)malloc(AFSNAMEMAX);
|
||||
t_name[0] = '\0';
|
||||
*a_name = t_name;
|
||||
memset(a_hosts, 0, AFSMAXCELLHOSTS * sizeof(afs_int32));
|
||||
a_hosts->serverList_len = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -472,10 +472,11 @@ int SRXAFSCB_GetLocalCell(
|
||||
{
|
||||
char *t_name;
|
||||
|
||||
t_name = (char *)malloc(AFSNAMEMAX);
|
||||
if (cm_rootCellp) {
|
||||
t_name = (char *)malloc(strlen(cm_rootCellp->namep)+1);
|
||||
strcpy(t_name, cm_rootCellp->namep);
|
||||
} else {
|
||||
t_name = (char *)malloc(1);
|
||||
t_name[0] = '\0';
|
||||
}
|
||||
*a_name = t_name;
|
||||
|
Loading…
Reference in New Issue
Block a user