man: split the description of sd_bus_error_set()

It was one giant all of text in pseudo-random order. Let's split it into
paragraphs talk about one subject each.

And unfortunately, the description of what happens when the error is not
set was not correct. In general, various functions treat 0/NULL as
not-an-error, and return 0.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-03-31 18:24:53 +02:00
parent b9c19bc384
commit af46237ea1
2 changed files with 93 additions and 106 deletions
+1 -1
View File
@@ -465,7 +465,7 @@ _public_ int sd_bus_error_set_errno(sd_bus_error *e, int error) {
if (!e)
return -error;
if (error == 0)
return -error;
return 0;
assert_return(!bus_error_is_dirty(e), -EINVAL);