From cd3615cae726ef8f1ea81f8af4d25a8ff2fa6ab7 Mon Sep 17 00:00:00 2001 From: stefanf Date: Thu, 1 Sep 2005 19:16:25 +0000 Subject: Only write the dispatch table function prototypes to the header if the -h flag was specified. If all files are generated at once, those functions are static and shouldn't appear in the header. PR: 84450 Reviewed by: alfred --- usr.bin/rpcgen/rpc_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/rpcgen/rpc_util.h') diff --git a/usr.bin/rpcgen/rpc_util.h b/usr.bin/rpcgen/rpc_util.h index 3e53a51..f32099e 100644 --- a/usr.bin/rpcgen/rpc_util.h +++ b/usr.bin/rpcgen/rpc_util.h @@ -191,8 +191,8 @@ void emit(definition *def); /* * rpc_hout routines */ -void print_datadef(definition *def); -void print_funcdef(definition *def); +void print_datadef(definition *def, int headeronly); +void print_funcdef(definition *def, int headeronly); void print_xdr_func_def(char* name, int pointerp, int i); /* -- cgit v1.1