From 5f965ac787ff6ac817bd61baf379b2df004f2e50 Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Wed, 9 Feb 2022 15:22:57 +0100 Subject: [PATCH] Fixed two compiler warnings --- src/detection/displayserver/xcb.c | 2 +- src/modules/packages.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/displayserver/xcb.c b/src/detection/displayserver/xcb.c index 80b432fe3..9165b2059 100644 --- a/src/detection/displayserver/xcb.c +++ b/src/detection/displayserver/xcb.c @@ -175,7 +175,7 @@ typedef struct XcbRandrData static bool xcbRandrHandleModeInfo(XcbRandrData* data, xcb_randr_mode_info_t* modeInfo) { uint32_t refreshRate = ffdsParseRefreshRate((int32_t) ( - modeInfo->dot_clock / (modeInfo->htotal * modeInfo->vtotal) + modeInfo->dot_clock / (uint32_t) (modeInfo->htotal * modeInfo->vtotal) )); return ffdsAppendResolution( diff --git a/src/modules/packages.c b/src/modules/packages.c index 373a59641..ff1f7a1e6 100644 --- a/src/modules/packages.c +++ b/src/modules/packages.c @@ -33,7 +33,7 @@ static uint32_t getRpmPackageCount(FFinstance* instance) if (ffrpmReadConfigFiles(NULL, NULL)) goto exit; if (!(ts = ffrpmtsCreate())) goto exit; if (!(mi = ffrpmtsInitIterator(ts, RPMDBI_LABEL, NULL, 0))) goto exit; - count = ffrpmdbGetIteratorCount(mi); + count = (uint32_t) ffrpmdbGetIteratorCount(mi); exit: if (mi) ffrpmdbFreeIterator(mi);