From: Stanislav kholmanskikh <stanislav.kholmansk...@oracle.com>

Modified lib/tst_module.c:
* for updated tst_run_cmd specification
* to hide gcc warning "initialization discards qualifiers from pointer target 
type"

Signed-off-by: Stanislav kholmanskikh <stanislav.kholmansk...@oracle.com>
---
 lib/tst_module.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/tst_module.c b/lib/tst_module.c
index 832da27..4871005 100644
--- a/lib/tst_module.c
+++ b/lib/tst_module.c
@@ -94,12 +94,12 @@ void tst_module_load(void (cleanup_fn)(void),
        for (i = offset; i < size; ++i)
                mod_argv[i] = argv[i - offset];
 
-       tst_run_cmd(cleanup_fn, mod_argv);
+       tst_run_cmd(cleanup_fn, mod_argv, NULL, NULL);
        free(mod_path);
 }
 
 void tst_module_unload(void (cleanup_fn)(void), const char *mod_name)
 {
-       char *const argv[] = { "rmmod", mod_name, NULL };
-       tst_run_cmd(cleanup_fn, argv);
+       char *const argv[] = { "rmmod", (char *) mod_name, NULL };
+       tst_run_cmd(cleanup_fn, argv, NULL, NULL);
 }
-- 
1.7.1


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to