Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change again the calling convention of routing_get_route_and_latency
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 15 Nov 2011 08:15:09 +0000 (09:15 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 15 Nov 2011 08:24:10 +0000 (09:24 +0100)
commit9b26e77b230c2d53aa8a456d29b6a215f6d1f659
tree4f292423cbe3d113dc626fcb0f0b9948096c52a6
parent29399b5261c3ff1e181eb75ee32d00aafeef5b26
Change again the calling convention of routing_get_route_and_latency

now, you cannot call it without passing a valid route receiver. It
will be created if pointing to NULL, or simply filled. Actually that
was the de facto calling convention in the code.

This allows to simplify routing_get_route_and_latency by not checking
if the caller is interested in the route at every line.

(plus some useless cosmetics)
src/surf/surf_routing.c
src/surf/surf_routing_generic.c