Skip to content

Commit 782ce43

Browse files
runebonekees
authored andcommitted
gcc-plugins: latent_entropy: Fix typo (args -> argc) in plugin description
Fix the typo in the plugin description comment. Clearly, "argc" should be used. Signed-off-by: Konstantin Runov <runebone1@gmail.com> Link: https://lore.kernel.org/r/20231030094508.245432-1-runebone1@gmail.com Signed-off-by: Kees Cook <keescook@chromium.org>
1 parent 1ee6035 commit 782ce43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/gcc-plugins/latent_entropy_plugin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* if (argc <= 1)
1818
* printf("%s: no command arguments :(\n", *argv);
1919
* else
20-
* printf("%s: %d command arguments!\n", *argv, args - 1);
20+
* printf("%s: %d command arguments!\n", *argv, argc - 1);
2121
* }
2222
*
2323
* after:
@@ -47,7 +47,7 @@
4747
* // perturb_local_entropy()
4848
* } else {
4949
* local_entropy ^= 3896280633962944730;
50-
* printf("%s: %d command arguments!\n", *argv, args - 1);
50+
* printf("%s: %d command arguments!\n", *argv, argc - 1);
5151
* }
5252
*
5353
* // latent_entropy_execute() 4.

0 commit comments

Comments
 (0)