Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v230
/
.
/
coccinelle
/
safe_close.cocci
blob: 6fedd804f2e3f8458439063d0ff7d988e9853565 [
file
] [
log
] [
blame
] [
raw
]
@@
expression fd
;
@@
-
close
(
fd
);
-
fd
=
-
1
;
+
fd
=
safe_close
(
fd
);
@@
expression fd
;
@@
-
close_nointr
(
fd
);
-
fd
=
-
1
;
+
fd
=
safe_close
(
fd
);
@@
expression fd
;
@@
-
safe_close
(
fd
);
-
fd
=
-
1
;
+
fd
=
safe_close
(
fd
);