1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Rename vg_size to vgsize to avoid naming conflicts.

Author: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
Dave Wysochanski 2009-07-26 12:40:27 +00:00
parent a66c95ce44
commit 8c38c9642c

View File

@ -57,7 +57,7 @@ struct archive_file {
/*
* Extract vg name and version number from a filename.
*/
static int _split_vg(const char *filename, char *vgname, size_t vg_size,
static int _split_vg(const char *filename, char *vgname, size_t vgsize,
uint32_t *ix)
{
size_t len, vg_len;
@ -78,7 +78,7 @@ static int _split_vg(const char *filename, char *vgname, size_t vg_size,
return 0;
vg_len = underscore - filename;
if (vg_len + 1 > vg_size)
if (vg_len + 1 > vgsize)
return 0;
strncpy(vgname, filename, vg_len);