]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: style nitpick node_vtable_get_userdata() 6853/head
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Sat, 16 Sep 2017 11:32:59 +0000 (12:32 +0100)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Sun, 17 Sep 2017 16:55:01 +0000 (17:55 +0100)
commit00590f8268846f717a77e5f0f8bc3e2a5740855e
tree1fd9e5de8c07153870e60f281cb167eb6dc4b8e3
parent733e792bc603f580c7a0e3031917982bb7399994
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/libsystemd/sd-bus/bus-objects.c