[OpenAFS] Re: [OpenAFS-devel] exposing RPC code<->name mappings via rxgen extension, a library, and a new utility

Steven Jenkins steven.jenkins@gmail.com
Tue, 5 May 2009 09:38:36 -0400


--0016e64652fa53f02b04692a659b
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

On Tue, May 5, 2009 at 9:35 AM, Steven Jenkins <steven.jenkins@gmail.com> wrote:
...I've attached the patch of what I
> hacked up in the rxgen source, but I actually don't think it's
> necessary.
>

Patch is attached this time.

-- 
Steven Jenkins
End Point Corporation
http://www.endpoint.com/

--0016e64652fa53f02b04692a659b
Content-Type: text/x-diff; charset=US-ASCII; name="translate_rpc.patch"
Content-Disposition: attachment; filename="translate_rpc.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fucnb6930

SW5kZXg6IHNyYy9yeGdlbi9ycGNfbWFpbi5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMvb3Bl
bmFmcy9zcmMvcnhnZW4vcnBjX21haW4uYyx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4zMApkaWZm
IC11IC1iIC1CIC1hIC11IC1yMS4zMCBycGNfbWFpbi5jCi0tLSBzcmMvcnhnZW4vcnBjX21haW4u
YwkyMSBEZWMgMjAwOCAwNjowNToxMiAtMDAwMAkxLjMwCisrKyBzcmMvcnhnZW4vcnBjX21haW4u
Ywk1IE1heSAyMDA5IDEzOjIxOjEwIC0wMDAwCkBAIC03NSw2ICs3NSw3IEBACiAgICAgaW50IHhm
bGFnOwogICAgIGludCB5ZmxhZzsKICAgICBpbnQgdWZsYWc7CisgICAgaW50IHRmbGFnOwogICAg
IGNoYXIgKmluZmlsZTsKICAgICBjaGFyICpvdXRmaWxlOwogfTsKQEAgLTg3LDcgKzg4LDcgQEAK
IGludCBuaW5jbHVkZXMgPSAwOwogY2hhciAqT3V0RmlsZUZsYWcgPSAiIjsKI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