]> git.ipfire.org Git - thirdparty/systemd.git/blame - coccinelle/take-fd.cocci
tests: introduce dummy_server_init and use it in all journald fuzzers
[thirdparty/systemd.git] / coccinelle / take-fd.cocci
CommitLineData
c10d6bdb
LP
1@@
2local idexpression p;
3expression q;
4@@
5- p = q;
6- q = -1;
7- return p;
8+ return TAKE_FD(q);
9@@
10expression p, q;
11@@
12- p = q;
13- q = -1;
14+ p = TAKE_FD(q);