From: Stanislav kholmanskikh <[email protected]>

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 <[email protected]>
---
 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..0b94a26 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, -1, -1);
        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, -1, -1);
 }
-- 
1.7.1


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to