1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00
systemd/coccinelle/errno.cocci

49 lines
618 B
Plaintext
Raw Normal View History

@@
identifier r;
expression e;
@@
- r = -e;
- log_error_errno(e,
+ r = log_error_errno(e,
...);
@@
identifier r;
expression e;
@@
- log_error_errno(e,
+ r = log_error_errno(e,
...);
- r = -e;
@@
identifier r;
expression e;
@@
- r = log_error_errno(e,
+ return log_error_errno(e,
...);
- return r;
@@
identifier r;
expression e;
@@
- r = -e;
- log_warning_errno(e,
+ r = log_warning_errno(e,
...);
@@
identifier r;
expression e;
@@
- log_warning_errno(e,
+ r = log_warning_errno(e,
...);
- r = -e;
@@
identifier r;
expression e;
@@
- r = log_warning_errno(e,
+ return log_warning_errno(e,
...);
- return r;