From 99dc8ca692ff51bf8f5c2d53e56681a84dd969b4 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Mon, 1 Jan 2024 21:12:24 +0100 Subject: pam_env: remove cast The zu formatter is available, as can be seen one line above. Do not cast unnecessarily to unsigned long. Cosmetic change on pretty much all supported systems. Signed-off-by: Tobias Stoeckmann --- modules/pam_env/pam_env.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/pam_env') diff --git a/modules/pam_env/pam_env.c b/modules/pam_env/pam_env.c index 12c7ddd7..ccf792ae 100644 --- a/modules/pam_env/pam_env.c +++ b/modules/pam_env/pam_env.c @@ -696,8 +696,8 @@ _expand_arg(pam_handle_t *pamh, char **value) free(*value); if ((*value = malloc(idx + 1)) == NULL) { D(("Couldn't malloc %zu bytes for expanded var", idx + 1)); - pam_syslog (pamh, LOG_CRIT, "Couldn't malloc %lu bytes for expanded var", - (unsigned long)idx+1); + pam_syslog (pamh, LOG_CRIT, "Couldn't malloc %zu bytes for expanded var", + idx+1); goto buf_err; } } -- cgit v1.2.3