diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2008-12-17 16:46:45 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2008-12-17 16:46:45 +0000 |
commit | c5c13fe77627ef0329d1022c6b3daab99decd258 (patch) | |
tree | 358cb3e70e133262bf6f8945b4fa00ac1b475234 /daemons/clvmd/lvm-functions.c | |
parent | 0fa2c4ed7f2105aebd8b8e3c6766da3addbaf7c1 (diff) | |
download | lvm2-c5c13fe77627ef0329d1022c6b3daab99decd258.tar.gz lvm2-c5c13fe77627ef0329d1022c6b3daab99decd258.tar.xz lvm2-c5c13fe77627ef0329d1022c6b3daab99decd258.zip |
Remove struct arg * from struct cmd_context and create_toolcontext().
This allows us to remove one argument from create_toolcontext() and
moves it closer to a generic library init function.
In the arg_*() functions, we just use _the_args() directly.
For now we leave the first parameter to these
arg_*() functions (struct cmd_context *) because
of the number of files involved in removing the
parameter.
Diffstat (limited to 'daemons/clvmd/lvm-functions.c')
-rw-r--r-- | daemons/clvmd/lvm-functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/clvmd/lvm-functions.c b/daemons/clvmd/lvm-functions.c index 8225df6a..7250e04a 100644 --- a/daemons/clvmd/lvm-functions.c +++ b/daemons/clvmd/lvm-functions.c @@ -724,7 +724,7 @@ void lvm_do_backup(const char *vgname) /* Called to initialise the LVM context of the daemon */ int init_lvm(int using_gulm) { - if (!(cmd = create_toolcontext(NULL, 0, 1))) { + if (!(cmd = create_toolcontext(0, 1))) { log_error("Failed to allocate command context"); return 0; } |