From: Zbigniew Jędrzejewski-Szmek Date: Tue, 30 Nov 2021 17:42:32 +0000 (+0100) Subject: oomd: use type suffix instead of casting X-Git-Tag: v250-rc1~103^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f1d6ebd2a10799bdc17649857b721e9faf15d25;p=thirdparty%2Fsystemd.git oomd: use type suffix instead of casting The end result is the same. --- diff --git a/src/oom/oomd-manager.c b/src/oom/oomd-manager.c index b0d365e46b2..9f4f083ab9a 100644 --- a/src/oom/oomd-manager.c +++ b/src/oom/oomd-manager.c @@ -108,10 +108,7 @@ static int process_managed_oom_message(Manager *m, uid_t uid, JsonVariant *param if (streq(message.property, "ManagedOOMMemoryPressure") && message.limit > 0) { int permyriad = UINT32_SCALE_TO_PERMYRIAD(message.limit); - r = store_loadavg_fixed_point( - (unsigned long) permyriad / 100, - (unsigned long) permyriad % 100, - &limit); + r = store_loadavg_fixed_point(permyriad / 100LU, permyriad % 100LU, &limit); if (r < 0) continue; }