diff options
Diffstat (limited to 'coccinelle/take-fd.cocci')
-rw-r--r-- | coccinelle/take-fd.cocci | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coccinelle/take-fd.cocci b/coccinelle/take-fd.cocci index 396d6965c7..15f1e7c2ce 100644 --- a/coccinelle/take-fd.cocci +++ b/coccinelle/take-fd.cocci @@ -4,7 +4,7 @@ local idexpression p; expression q; @@ - p = q; -- q = -1; +- q = -EBADF; - return p; + return TAKE_FD(q); @@ -18,5 +18,5 @@ expression p != errno; expression q; @@ - p = q; -- q = -1; +- q = -EBADF; + p = TAKE_FD(q); |