From bd011aeee7f5dad5c61fd81a90b296c46a0b9058 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 19 Oct 2009 18:43:44 -0400 Subject: [PATCH] Add server prefix to bumon.xg; avoid rx_call * vs rx_connection * warning When compiling src/bubasics/bumon.ss.c a warning would be produced due to an rx_call* being passed into BC_Print which in its client form requires an rx_connection*. The server implementation and client stub each were called BC_Print because there was no server prefix specified in bumon.xg. Add prefix 'S' and update bucoord/server.c to match. Reviewed-on: http://gerrit.openafs.org/686 Reviewed-by: Simon Wilkinson Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- README.WARNINGS | 1 - src/bubasics/Makefile.in | 3 --- src/bubasics/bumon.xg | 1 + src/bucoord/server.c | 2 +- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/README.WARNINGS b/README.WARNINGS index 5a10fc6b5..651ae3f25 100644 --- a/README.WARNINGS +++ b/README.WARNINGS @@ -49,7 +49,6 @@ bozo/bosserver.c : deprecated : daemon() marked as deprecated on Darwin bozo/bosoprocs.c : all : ExtendedCellInfo and des key types bozo/bos.c : all : DES key types & string consts bozo/bos_util.c : all : DES key types -bubasics/bumon.ss.c : all : BC_Print collision betwen client & server bucoord/ubik_db_if.c : strict-proto : Ubik_Call bucoord/commands.c : all : Ubik_Call : signed vs unsigned for dates diff --git a/src/bubasics/Makefile.in b/src/bubasics/Makefile.in index e4d21ed51..ab0444f13 100644 --- a/src/bubasics/Makefile.in +++ b/src/bubasics/Makefile.in @@ -93,9 +93,6 @@ butx_errs.c: butx_errs.et $(RM) -f butx.h butx_errs.c ${COMPILE_ET} -p ${srcdir} butx_errs -h butx -bumon.ss.o: bumon.ss.c - $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $< - # # Installation targets # diff --git a/src/bubasics/bumon.xg b/src/bubasics/bumon.xg index dcbd85ea6..00140ac37 100644 --- a/src/bubasics/bumon.xg +++ b/src/bubasics/bumon.xg @@ -8,6 +8,7 @@ */ package BC_ +prefix S statindex 3 /* this junk structure forces the creation of an .xdr.c file, diff --git a/src/bucoord/server.c b/src/bucoord/server.c index a35c2506d..6bd1f6cd6 100644 --- a/src/bucoord/server.c +++ b/src/bucoord/server.c @@ -21,7 +21,7 @@ /* services available on incoming message port */ int -BC_Print(struct rx_call *acall, afs_int32 acode, afs_int32 aflags, +SBC_Print(struct rx_call *acall, afs_int32 acode, afs_int32 aflags, char *amessage) { struct rx_connection *tconn; -- 2.39.5