1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

coccinelle: skip the xsprintf transformation on man pages

since we don't expose xsprintf to users.
This commit is contained in:
Frantisek Sumsal 2020-10-04 11:31:51 +02:00
parent aad54dbc74
commit cb60571b31

View File

@ -1,6 +1,7 @@
@@
position p : script:python() { not p[0].file.startswith("man/") };
expression e, fmt;
expression list vaargs;
@@
- snprintf(e, sizeof(e), fmt, vaargs);
- snprintf@p(e, sizeof(e), fmt, vaargs);
+ xsprintf(e, fmt, vaargs);