mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 06:25:37 +03:00
64b92d637c
Since those are chunks of code based on our codebase, it's easiest to use the same license.
20 lines
265 B
Plaintext
20 lines
265 B
Plaintext
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
@@
|
|
expression fd;
|
|
@@
|
|
- close(fd);
|
|
- fd = -1;
|
|
+ fd = safe_close(fd);
|
|
@@
|
|
expression fd;
|
|
@@
|
|
- close_nointr(fd);
|
|
- fd = -1;
|
|
+ fd = safe_close(fd);
|
|
@@
|
|
expression fd;
|
|
@@
|
|
- safe_close(fd);
|
|
- fd = -1;
|
|
+ fd = safe_close(fd);
|