1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Make cmd->cmd_line const.

This commit is contained in:
Alasdair Kergon 2009-07-13 19:49:48 +00:00
parent c944836420
commit 7f355587f5
4 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.49 -
================================
Make cmd->cmd_line const.
Fix dev name mismatch in vgcreate man page example.
Refactor vg_remove_single for use in liblvm.
Make all tools consistent with lock ordering - obtain VG_ORPHAN lock second.

View File

@ -795,7 +795,7 @@ int init_lvm(int using_gulm)
/* Use LOG_DAEMON for syslog messages instead of LOG_USER */
init_syslog(LOG_DAEMON);
openlog("clvmd", LOG_PID, LOG_DAEMON);
cmd->cmd_line = (char *)"clvmd";
cmd->cmd_line = "clvmd";
/* Check lvm.conf is setup for cluster-LVM */
check_config();

View File

@ -63,7 +63,7 @@ struct cmd_context {
const char *kernel_vsn;
unsigned rand_seed;
char *cmd_line;
const char *cmd_line;
struct command *command;
char **argv;
unsigned is_long_lived:1; /* Optimises persistent_filter handling */

View File

@ -918,7 +918,7 @@ static void _apply_settings(struct cmd_context *cmd)
cmd->handles_missing_pvs = 0;
}
static char *_copy_command_line(struct cmd_context *cmd, int argc, char **argv)
static const char *_copy_command_line(struct cmd_context *cmd, int argc, char **argv)
{
int i, space;