mirror of
https://github.com/systemd/systemd.git
synced 2026-11-06 05:17:24 +00:00
quotacheck: comment bare literal arguments
docs/CODING_STYLE.md asks for a /* name= */ comment whenever NULL or another value meaning "unset" is passed to a function. Add it wherever a bare NULL, 0, false or true is passed for a parameter with a telling name. Mechanical, generated by tools/check-argument-comments.py --fix.
This commit is contained in:
1 parent
a52bc9d338
commit
5e65a274c0
1 file changed
+1
-1
@@ -85,7 +85,7 @@ static int run(int argc, char *argv[]) {
|
||||
|
||||
umask(0022);
|
||||
|
||||
r = proc_cmdline_parse(parse_proc_cmdline_item, NULL, 0);
|
||||
r = proc_cmdline_parse(parse_proc_cmdline_item, /* userdata= */ NULL, /* flags= */ 0);
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "Failed to parse kernel command line, ignoring: %m");
|
||||
|
||||
|
||||
Reference in new issue
Block a user