From 8d75f24aae3d2ed62dc070fd257464713d615a23 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 31 Jul 2015 20:47:35 -0400 Subject: [PATCH] libadmin: #define UBIK_LEGACY_CALLITER 1 in afs_kasAdmin.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces this warning: afs_kasAdmin.c: In function ‘GetPrincipalLockStatus’: afs_kasAdmin.c:710:6: warning: implicit declaration of function ‘ubik_CallIter’ [-Wimplicit-function-declaration] ubik_CallIter(KAM_LockStatus, kaserver->servers, UPUBIKONLY, ^ with these marginally less alarming warnings: In file included from ../adminutil/afs_AdminInternal.h:17:0, from afs_kasAdmin.c:21: /home/anders/wd/openafs/include/ubik.h:627:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] extern afs_int32 ubik_CallIter(int (*aproc) (), struct ubik_client *aclient, ^ /home/anders/wd/openafs/include/ubik.h:632:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] extern afs_int32 ubik_Call_New(int (*aproc) (), struct ubik_client ^ Change-Id: I49dbc5f6bb9199764c73c6ee8449d62518f377e6 Signed-off-by: Anders Kaseorg Reviewed-on: http://gerrit.openafs.org/11954 Reviewed-by: Perry Ruiter Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- CODING | 2 +- src/libadmin/kas/afs_kasAdmin.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CODING b/CODING index b1e12c764c..1780b0ca53 100644 --- a/CODING +++ b/CODING @@ -257,7 +257,7 @@ butc/tcudbprocs.c : all : ubik_Call external/heimdal/hcrypto/validate.c: all: statement with empty body kauth/admin_tools.c : all : signed vs unsigned for dates kauth/authclient.c : strict-proto : ubik_Call nonsense -libadmin/kas/afs_kasAdmin.c: all : Ubik_Call nonsense +libadmin/kas/afs_kasAdmin.c: strict-proto : ubik_Call nonsense libadmin/samples/rxstat_query_peer.c : all : util_RPCStatsStateGet types libadmin/samples/rxstat_query_process.c : all : util_RPCStatsStateGet types libadmin/test/client.c : all : util_RPCStatsStateGet types diff --git a/src/libadmin/kas/afs_kasAdmin.c b/src/libadmin/kas/afs_kasAdmin.c index b11f8c757e..11b5a045b0 100644 --- a/src/libadmin/kas/afs_kasAdmin.c +++ b/src/libadmin/kas/afs_kasAdmin.c @@ -7,6 +7,8 @@ * directory or online at http://www.openafs.org/dl/license10.html */ +#define UBIK_LEGACY_CALLITER 1 + #include #include #include