From: Ilho Kim Date: Tue, 14 Jan 2020 01:33:58 +0000 (+0900) Subject: Remove compile warning messages X-Git-Tag: accepted/tizen/unified/20200116.101842~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F222344%2F2;p=platform%2Fcore%2Fappfw%2Fpkgmgr-info.git Remove compile warning messages This patch for fixing build warning about format caused by toolchain version-up (applying GCC-9) Change-Id: Icb80349f77b07a3428684f535cd1de1ba9715734 Signed-off-by: Ilho Kim --- diff --git a/parser/src/pkgmgr_parser_db.c b/parser/src/pkgmgr_parser_db.c index 7f1738d..d663aa4 100644 --- a/parser/src/pkgmgr_parser_db.c +++ b/parser/src/pkgmgr_parser_db.c @@ -438,7 +438,7 @@ static void __check_db_lock(const char *dbpath) int pid; unsigned int maj; unsigned int min; - ino_t ino; + unsigned long long ino; char cmdline[BUFSIZE]; char name[BUFSIZE]; size_t len; @@ -454,7 +454,7 @@ static void __check_db_lock(const char *dbpath) return; } - while (fscanf(fp, "%*s %*s %*s %5s %d %x:%x:%lu %*s %*s", + while (fscanf(fp, "%*s %*s %*s %5s %d %x:%x:%llu %*s %*s", type, &pid, &maj, &min, &ino) != EOF) { if (maj != major(sb.st_dev) || min != minor(sb.st_dev) || ino != sb.st_ino || pid == getpid() ||