mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
37 lines
782 B
Plaintext
37 lines
782 B
Plaintext
|
@@
|
||
|
expression p;
|
||
|
@@
|
||
|
- if (p) {
|
||
|
- (void) sd_event_source_set_enabled(p, SD_EVENT_OFF);
|
||
|
- p = sd_event_source_unref(p);
|
||
|
- }
|
||
|
+ p = sd_event_source_disable_unref(p);
|
||
|
@@
|
||
|
expression p;
|
||
|
@@
|
||
|
- if (p) {
|
||
|
- sd_event_source_set_enabled(p, SD_EVENT_OFF);
|
||
|
- sd_event_source_unref(p);
|
||
|
- }
|
||
|
+ sd_event_source_disable_unref(p);
|
||
|
@@
|
||
|
expression p;
|
||
|
@@
|
||
|
- if (p) {
|
||
|
- (void) sd_event_source_set_enabled(p, SD_EVENT_OFF);
|
||
|
- sd_event_source_unref(p);
|
||
|
- }
|
||
|
+ sd_event_source_disable_unref(p);
|
||
|
@@
|
||
|
expression p;
|
||
|
@@
|
||
|
- (void) sd_event_source_set_enabled(p, SD_EVENT_OFF);
|
||
|
- sd_event_source_unref(p);
|
||
|
+ sd_event_source_disable_unref(p);
|
||
|
@@
|
||
|
expression p;
|
||
|
@@
|
||
|
- sd_event_source_set_enabled(p, SD_EVENT_OFF);
|
||
|
- sd_event_source_unref(p);
|
||
|
+ sd_event_source_disable_unref(p);
|