mirror of
https://github.com/systemd/systemd.git
synced 2024-12-05 08:13:48 +08:00
64b92d637c
Since those are chunks of code based on our codebase, it's easiest to use the same license.
38 lines
831 B
Plaintext
38 lines
831 B
Plaintext
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
@@
|
|
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);
|