chiark / gitweb /
sd-bus: style nitpick node_vtable_get_userdata()
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Sat, 16 Sep 2017 11:32:59 +0000 (12:32 +0100)
committerSven Eden <yamakuzure@gmx.net>
Sat, 16 Sep 2017 11:32:59 +0000 (12:32 +0100)
commit076cfbaf21c2eb087a09cc90f41008660fcbcf93
tree1dd7c7595efa9405267df63df3c109953707f377
parent181ff29f0bcf43c18a91b24e26c1b5431c2db1e5
sd-bus: style nitpick node_vtable_get_userdata()

It's confusing to use a single void* to store data with two different
types, i.e. a userdata value which is safe to pass to ->find(), and a
userdata value which identifies the found object.

Name the latter `found_u`.  This naming treats (!c->find) as a degenerate
case.  (I.e. at that point, we know the object has already been found :).
src/libelogind/sd-bus/bus-objects.c