]> git.evergreen-ils.org Git - OpenSRF.git/commit
1. Changed several functions that were returning int so that
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 3 Nov 2009 22:25:12 +0000 (22:25 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 3 Nov 2009 22:25:12 +0000 (22:25 +0000)
commit6fbbc83de06da51499ae49000ddd6d72002fb1e8
tree87f123248f1bcfccf13bce8c1b0a308109b5d465
parent38a39592ca7d5bfd147b00f718dca73e454e65c4
1. Changed several functions that were returning int so that
they return void instead.  We weren't checking the return codes
anyway, since the functions in question handle their error
conditions on their own.

2. Eliminated a pointless memset().

3. For message received from the top-level transport_client, we
have to branch according to whether the message is a command
or an app request.  I moved that decision up one level in the
calling hierarchy.

Rationale:  the two branches are peers.  Neither should be
treated as if it is a subordinate of the other.  That peerage
is better expressed by making them two branches of the same if
statement, rather than conditionally calling one of the branches
from inside the other.

Minor performance benefit: for one of the branches we avoid an
extra layer of function call.

4. Related to the above: renamed osrfRouterHandleMessage() to
osrfRouterHandleCommand(), since handling commands is all it
does now.  Also rearranged its logic a bit.

5. Extended and refined the comments.

M    src/router/osrf_router.c

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1840 9efc2488-bf62-4759-914b-345cdb29e865
src/router/osrf_router.c