From 0745f76ebe05f7f37eff7d9dcf97e9d9be2004da Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Fri, 11 Jul 2008 09:19:54 +0000 Subject: [PATCH] Fix gcc warnings. --- lib/format_text/import_vsn1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/format_text/import_vsn1.c b/lib/format_text/import_vsn1.c index fd046038e..c2c838ca1 100644 --- a/lib/format_text/import_vsn1.c +++ b/lib/format_text/import_vsn1.c @@ -125,7 +125,7 @@ static int _read_id(struct id *id, struct config_node *cn, const char *path) return 1; } -static int _read_flag_config(struct config_node *n, int *status, int type) +static int _read_flag_config(struct config_node *n, uint32_t *status, int type) { struct config_node *cn; *status = 0; @@ -140,7 +140,7 @@ static int _read_flag_config(struct config_node *n, int *status, int type) return 0; } - if (cn = find_config_node(n, "flags")) { + if ((cn = find_config_node(n, "flags"))) { if (!(read_flags(status, type, cn->v))) { log_error("Could not read flags."); return 0; @@ -836,7 +836,7 @@ static const char *_read_vgname(const struct format_type *fmt, struct config_tree *cft, struct id *vgid, uint32_t *vgstatus, char **creation_host) { - struct config_node *vgn, *cn; + struct config_node *vgn; struct dm_pool *mem = fmt->cmd->mem; char *vgname; int old_suppress; -- 2.43.5