Fix some compiler warnings introduced recently.

This commit is contained in:
Milan Broz
2015-01-15 12:27:34 +01:00
parent ea8864badf
commit b789b011a2
4 changed files with 6 additions and 4 deletions

View File

@@ -374,7 +374,8 @@ static int crypt_uuid_cmp(const char *dm_uuid, const char *hdr_uuid)
static int crypt_uuid_type_cmp(struct crypt_device *cd, const char *type)
{
struct crypt_dm_active_device dmd = {};
int r, len;
size_t len;
int r;
/* Must user header-on-disk if we know type here */
if (cd->type || !cd->u.none.active_name)