rx: Make rxevent_Put NULL the event ptr being put
authorSimon Wilkinson <sxw@your-file-system.com>
Sun, 4 Nov 2012 17:06:41 +0000 (17:06 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Sat, 1 Dec 2012 17:51:31 +0000 (09:51 -0800)
commitf2fdd3040cf6fabcae3ff889d13349abdaaf9e0c
tree540ab304b2dcfcca92a800a0001f3df7f6e90533
parentf40199327a8753d8350b5fefedc2bb556b8b00a6
rx: Make rxevent_Put NULL the event ptr being put

Change rxevent_Put so that it takes a pointer to the event being
put, and NULLs that pointer. This removes a lot of duplicate code
in callers, as well as making it harder to reuse a discarded event.

Change-Id: Ib7a51f01687e08ea3dced5932ec9ec27797a784a
Reviewed-on: http://gerrit.openafs.org/8540
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/rx/rx.c
src/rx/rx_event.c
src/rx/rx_event.h
tests/rx/event-t.c