mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
sd-event: follow coding style with naming return parameter
This commit is contained in:
parent
f814c871e6
commit
cad143a8f2
@ -2262,12 +2262,13 @@ fail:
|
||||
return r;
|
||||
}
|
||||
|
||||
_public_ int sd_event_source_get_enabled(sd_event_source *s, int *m) {
|
||||
_public_ int sd_event_source_get_enabled(sd_event_source *s, int *ret) {
|
||||
assert_return(s, -EINVAL);
|
||||
assert_return(!event_pid_changed(s->event), -ECHILD);
|
||||
|
||||
if (m)
|
||||
*m = s->enabled;
|
||||
if (ret)
|
||||
*ret = s->enabled;
|
||||
|
||||
return s->enabled != SD_EVENT_OFF;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user