From 5f1d6ebd2a10799bdc17649857b721e9faf15d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 30 Nov 2021 18:42:32 +0100 Subject: oomd: use type suffix instead of casting The end result is the same. --- src/oom/oomd-manager.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/oom') diff --git a/src/oom/oomd-manager.c b/src/oom/oomd-manager.c index b0d365e46b..9f4f083ab9 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; } -- cgit v1.2.1