1
0
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:
Alasdair Kergon 2001-12-31 15:14:44 +00:00
parent 4b4035101b
commit 52f71ce77b
2 changed files with 3 additions and 3 deletions

View File

@ -464,7 +464,7 @@ int text_vg_export(FILE *fp, struct volume_group *vg)
if (!_print_vg(f, vg)) if (!_print_vg(f, vg))
fail; fail;
_nl(f): _nl(f);
if (!_print_pvs(f, vg)) if (!_print_pvs(f, vg))
fail; fail;

View File

@ -71,7 +71,7 @@ static int _emit(char **buffer, size_t *size, const char *fmt, ...)
n = vsnprintf(*buffer, *size, fmt, ap); n = vsnprintf(*buffer, *size, fmt, ap);
va_end(ap); va_end(ap);
if (n < 0 || (n == size)) if (n < 0 || (n == *size))
return 0; return 0;
*buffer += n; *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 print_flags(uint32_t status, int type, char *buffer, size_t size)
{ {
int f, first = 1, n; int f, first = 1;
struct flag *flags; struct flag *flags;
if (!(flags = _get_flags(type))) { if (!(flags = _get_flags(type))) {