diff options
Diffstat (limited to 'coccinelle')
-rw-r--r-- | coccinelle/fopen-unlocked.cocci | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/coccinelle/fopen-unlocked.cocci b/coccinelle/fopen-unlocked.cocci index bbd70a6338..7870f8ccea 100644 --- a/coccinelle/fopen-unlocked.cocci +++ b/coccinelle/fopen-unlocked.cocci @@ -61,3 +61,11 @@ expression f, fd, options; + return r; } - (void) __fsetlocking(f, FSETLOCKING_BYCALLER); +@@ +expression f, buf, sz; +@@ +- f = open_memstream(&buf, &sz); ++ f = open_memstream_unlocked(&buf, &sz); + if (!f) + return ...; +- (void) __fsetlocking(f, FSETLOCKING_BYCALLER); |