diff options
author | wpaul <wpaul@FreeBSD.org> | 1998-01-19 17:19:09 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1998-01-19 17:19:09 +0000 |
commit | 1f7cb8a6c2660fa79ddabf0eabc1de17a985c316 (patch) | |
tree | 9821da9c6886540bd57416b87f7d26460cf2ba3d /include/rpcsvc/key_prot.x | |
parent | f587b268a1db2884ac02d1111626b1def62f83a8 (diff) | |
download | FreeBSD-src-1f7cb8a6c2660fa79ddabf0eabc1de17a985c316.zip FreeBSD-src-1f7cb8a6c2660fa79ddabf0eabc1de17a985c316.tar.gz |
Invoke rpcgen with -C so that headers are created with ANSI prototypes.
Note: this may cause some problems in a few cases. With very old versions
of rpcgen, if you defined a procedure called foo, then rpcen would create
client stubs for function foo_1() and server stubs _also_ with function
foo_1(). This only worked because of the lack of ANSI prototypes: the
client side stub takes different arguments than the server side stub.
(The client side takes a CLIENT * handle, while the server side wants
an svc_req *.)
To fix this conflict, rpcgen in ANSI mode generates foo_1() for the client
and foo_1_svc() for the server. RPC server code that depends on the old
behavior might break because of this. (Fixing it is just a matter of
adding the _svc suffix onto the server procedure names.)
Diffstat (limited to 'include/rpcsvc/key_prot.x')
0 files changed, 0 insertions, 0 deletions