diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-01 21:12:24 +0100 |
---|---|---|
committer | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-02 18:09:28 +0100 |
commit | 99dc8ca692ff51bf8f5c2d53e56681a84dd969b4 (patch) | |
tree | 9710c446ebbc6d2e779007d077d136eba5b9c77b /modules | |
parent | abfd1bb99edc2e1eee97b1d59e054c8f0b1db759 (diff) | |
download | pam-99dc8ca692ff51bf8f5c2d53e56681a84dd969b4.tar.gz pam-99dc8ca692ff51bf8f5c2d53e56681a84dd969b4.tar.bz2 pam-99dc8ca692ff51bf8f5c2d53e56681a84dd969b4.zip |
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 <tobias@stoeckmann.org>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pam_env/pam_env.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |