crashlog: fix build issue under latest clearlinux

gcc in latest clearlinux enabled the pointer-sign warning as
default. This breaks the acrn-crashlog build.

Make acrn-crashlog build issue fixed by convert to correct
pointer type.

Tracked-On: #4636
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
Yin Fengwei 2020-04-15 10:59:49 +08:00 committed by wenlingz
parent 60c4ec0c59
commit 345cb77376
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ int loopdev_check_parname(const char *loopdev, const char *parname)
/* only look into the primary super block */
if (super.s_volume_name[0]) {
close(fd);
return !strcmp(super.s_volume_name, parname);
return !strcmp((const char *)super.s_volume_name, parname);
}
break;
}