Pass the version of the hugectl tool over to the main library for checking.
This allows us to report any missmatch in the library.
Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
hugectl.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/hugectl.c b/hugectl.c
index 0f6e433..f84d8b7 100644
--- a/hugectl.c
+++ b/hugectl.c
@@ -108,6 +108,10 @@ void setup_environment(char *var, char *val)
printf("%s='%s'\n", var, val);
}
+void version_init(void)
+{
+ setup_environment("HUGETLB_TOOL_VERSION", VERSION);
+}
/*
* getopts return values for options which are long only.
@@ -258,6 +262,7 @@ int main(int argc, char** argv)
};
verbose_init();
+ version_init();
while (ret != -1) {
ret = getopt_long(argc, argv, opts, long_opts, &index);
--
1.5.6.GIT
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel