mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fixes for compilation.
This commit is contained in:
parent
4b4035101b
commit
52f71ce77b
@ -464,7 +464,7 @@ int text_vg_export(FILE *fp, struct volume_group *vg)
|
||||
if (!_print_vg(f, vg))
|
||||
fail;
|
||||
|
||||
_nl(f):
|
||||
_nl(f);
|
||||
|
||||
if (!_print_pvs(f, vg))
|
||||
fail;
|
||||
|
@ -71,7 +71,7 @@ static int _emit(char **buffer, size_t *size, const char *fmt, ...)
|
||||
n = vsnprintf(*buffer, *size, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
if (n < 0 || (n == size))
|
||||
if (n < 0 || (n == *size))
|
||||
return 0;
|
||||
|
||||
*buffer += n;
|
||||
@ -86,7 +86,7 @@ static int _emit(char **buffer, size_t *size, const char *fmt, ...)
|
||||
*/
|
||||
int print_flags(uint32_t status, int type, char *buffer, size_t size)
|
||||
{
|
||||
int f, first = 1, n;
|
||||
int f, first = 1;
|
||||
struct flag *flags;
|
||||
|
||||
if (!(flags = _get_flags(type))) {
|
||||
|
Loading…
Reference in New Issue
Block a user