Linux SPARSE checker discussions
 help / color / mirror / Atom feed
diff for duplicates of <20200705130220.26230-8-luc.vanoostenryck@gmail.com>

diff --git a/a/1.txt b/N1/1.txt
index 46fc9f5..f656603 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -752,3 +752,22 @@ index 4868154fa3de..5f4e6b2d76c8 100644
 -	printf("%s\n", SPARSE_VERSION);
 -	exit(0);
 -}
+-
+ static char **handle_param(char *arg, char **next)
+ {
+ 	char *value = NULL;
+@@ -1162,6 +1154,12 @@ static char **handle_param(char *arg, char **next)
+ 	return next;
+ }
+ 
++static char **handle_version(char *arg, char **next)
++{
++	printf("%s\n", SPARSE_VERSION);
++	exit(0);
++}
++
+ struct switches {
+ 	const char *name;
+ 	char **(*fn)(char *, char **);
+-- 
+2.27.0
diff --git a/a/content_digest b/N1/content_digest
index 1ff15ff..47a27ab 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -759,6 +759,25 @@
  "-{\n"
  "-\tprintf(\"%s\\n\", SPARSE_VERSION);\n"
  "-\texit(0);\n"
- -}
+ "-}\n"
+ "-\n"
+ " static char **handle_param(char *arg, char **next)\n"
+ " {\n"
+ " \tchar *value = NULL;\n"
+ "@@ -1162,6 +1154,12 @@ static char **handle_param(char *arg, char **next)\n"
+ " \treturn next;\n"
+ " }\n"
+ " \n"
+ "+static char **handle_version(char *arg, char **next)\n"
+ "+{\n"
+ "+\tprintf(\"%s\\n\", SPARSE_VERSION);\n"
+ "+\texit(0);\n"
+ "+}\n"
+ "+\n"
+ " struct switches {\n"
+ " \tconst char *name;\n"
+ " \tchar **(*fn)(char *, char **);\n"
+ "-- \n"
+ 2.27.0
 
-7ddff71859fe066763e2d04dc6cb7194c12c773d1d48b6d5a142fa8a72f106f5
+66cd31f5cf46332f3d3bcf3b109037447c38848006e028680a7f57e65c72e82d

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox