]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/safe_close.cocci
man: fix reference to sd_bus_add_fallback_vtable
[thirdparty/systemd.git] / coccinelle / safe_close.cocci
1 @@
2 expression fd;
3 @@
4 - close(fd);
5 - fd = -1;
6 + fd = safe_close(fd);
7 @@
8 expression fd;
9 @@
10 - close_nointr(fd);
11 - fd = -1;
12 + fd = safe_close(fd);
13 @@
14 expression fd;
15 @@
16 - safe_close(fd);
17 - fd = -1;
18 + fd = safe_close(fd);