summaryrefslogtreecommitdiff
path: root/coccinelle/safe_close.cocci
Commit message (Collapse)AuthorAgeFilesLines
* licensing: add spdx to our .cocci filesZbigniew Jędrzejewski-Szmek2021-10-011-0/+1
| | | | | Since those are chunks of code based on our codebase, it's easiest to use the same license.
* tree-wide: make more code use safe_close()Lennart Poettering2015-09-091-0/+18
Replace this: close(fd); fd = -1; write this: fd = safe_close(fd);