]>
git.ipfire.org Git - thirdparty/systemd.git/blame_incremental - coccinelle/safe_close.cocci
... / ...
Commit | Line | Data |
| 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); |