OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_1-231-g97f0a20
Gerrit Code Review
gerrit@openafs.org
Thu, 1 Dec 2022 21:36:08 -0500
The following commit has been merged in the master branch:
commit 97f0a20e50f027fe00adb22c39b71f0ac79f1ff7
Author: Cheyenne Wills <cwills@sinenomine.net>
Date: Thu Dec 1 10:00:06 2022 -0700
libadmin: Fix RPCStatsStateGet 'rpc' prototype
clang-16 is flagging a incompatible-function-pointer-types warning which
results in build errors when --enable-warning is turned on.
client.c:498:13: error: incompatible function pointer types passing
'int (struct rx_connection *, afs_int32 *)'
(aka 'int (struct rx_connection *, int *)') to parameter of type
'int (*)(struct rx_connection *, afs_RPCStatsState_p)'
(aka 'int (*)(struct rx_connection *, afs_RPCStatsState_t *)')
[-Wincompatible-function-pointer-types]
(conn, RXSTATS_QueryPeerRPCStats, &state, &st)) {
^~~~~~~~~~~~~~~~~~~~~~~~~
Update the 'util_RPCStatsStateGet()' function's parameter to match the
function type for the RPC functions actually being called.
Change-Id: I4354dff2733ce2319b27a2f047cfe4a21ef3bcc8
Reviewed-on: https://gerrit.openafs.org/15180
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/libadmin/adminutil/afs_utilAdmin.c | 10 ++++++----
src/libadmin/adminutil/afs_utilAdmin.h | 4 ++--
2 files changed, 8 insertions(+), 6 deletions(-)
--
OpenAFS Master Repository