mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
19 lines
329 B
Plaintext
19 lines
329 B
Plaintext
|
@@
|
||
|
local idexpression r;
|
||
|
expression p, k, x;
|
||
|
@@
|
||
|
- r = set_ensure_allocated(&p, k);
|
||
|
- if (r < 0)
|
||
|
- return ...;
|
||
|
- r = set_put(p, x);
|
||
|
+ r = set_ensure_put(&p, k, x);
|
||
|
@@
|
||
|
local idexpression r;
|
||
|
expression p, k, x;
|
||
|
@@
|
||
|
- r = set_ensure_allocated(p, k);
|
||
|
- if (r < 0)
|
||
|
- return ...;
|
||
|
- r = set_put(*p, x);
|
||
|
+ r = set_ensure_put(p, k, x);
|