diff --git a/src/libafscp/afscp.h b/src/libafscp/afscp.h index 21ac77f376..4634202ef7 100644 --- a/src/libafscp/afscp.h +++ b/src/libafscp/afscp.h @@ -131,7 +131,7 @@ int afscp_CheckCallBack(const struct afscp_venusfid *fid, afs_uint32 *expiretime); int afscp_FindCallBack(const struct afscp_venusfid *f, const struct afscp_server *server, - struct afscp_callback *ret); + struct afscp_callback **ret); int afscp_AddCallBack(const struct afscp_server *, const struct AFSFid *, const struct AFSFetchStatus *, diff --git a/src/libafscp/afscp_callback.c b/src/libafscp/afscp_callback.c index 08e827de52..e1f13d7948 100644 --- a/src/libafscp/afscp_callback.c +++ b/src/libafscp/afscp_callback.c @@ -103,7 +103,9 @@ init_afs_cb(void) } /* init_afs_cb */ int -afscp_FindCallBack(const struct afscp_venusfid *f, const struct afscp_server *server, struct afscp_callback *ret) +afscp_FindCallBack(const struct afscp_venusfid *f, + const struct afscp_server *server, + struct afscp_callback **ret) { int i; struct afscp_callback *use = NULL, *cb; @@ -137,7 +139,7 @@ afscp_FindCallBack(const struct afscp_venusfid *f, const struct afscp_server *se } if (use->valid) - ret = use; + *ret = use; else return -1; diff --git a/src/libafscp/afscp_fid.c b/src/libafscp/afscp_fid.c index 903d1238e7..69e38b1645 100644 --- a/src/libafscp/afscp_fid.c +++ b/src/libafscp/afscp_fid.c @@ -280,7 +280,7 @@ afscp_CheckCallBack(const struct afscp_venusfid *fid, const struct afscp_server if (code != 0) return code; - code = afscp_FindCallBack(fid, server, cb); + code = afscp_FindCallBack(fid, server, &cb); if (code != 0) return code;