property callback returns are consistent

It is no different to return 0 over 1 in the property
callback. It is confusing to return 1 which made me think
1 has a special purpose. This way code is consistent with
the rest of the tree.
This commit is contained in:
Umut Tezduyar Lindskog
2015-07-08 14:37:25 +02:00
parent 9a50ce20ef
commit 0f82610153
3 changed files with 4 additions and 20 deletions
+1 -5
View File
@@ -53,11 +53,7 @@ static int property_get_ether_addrs(
return r;
}
r = sd_bus_message_close_container(reply);
if (r < 0)
return r;
return 1;
return sd_bus_message_close_container(reply);
}
const sd_bus_vtable network_vtable[] = {