]> git.ipfire.org Git - thirdparty/systemd.git/blame - coccinelle/safe_close.cocci
fix(journal-gatewayd): use relative urls (not starting with '/')
[thirdparty/systemd.git] / coccinelle / safe_close.cocci
CommitLineData
66e40583
LP
1@@
2expression fd;
3@@
4- close(fd);
5- fd = -1;
6+ fd = safe_close(fd);
7@@
8expression fd;
9@@
10- close_nointr(fd);
11- fd = -1;
12+ fd = safe_close(fd);
13@@
14expression fd;
15@@
16- safe_close(fd);
17- fd = -1;
18+ fd = safe_close(fd);