From 60e5842014061a9c216f6f3d1459cd96eecab846 Mon Sep 17 00:00:00 2001 From: ken <41325712+rtczza@users.noreply.github.com> Date: Wed, 23 Aug 2023 22:37:09 +0800 Subject: [PATCH] modify ret type from int to bool (#298) * modify ret type from int to bool * change debug_return_int to debug_return_bool * modify ret type --- plugins/sudoers/timestamp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sudoers/timestamp.c b/plugins/sudoers/timestamp.c index 72ed618017..15dc49b392 100644 --- a/plugins/sudoers/timestamp.c +++ b/plugins/sudoers/timestamp.c @@ -945,7 +945,7 @@ bool timestamp_update(void *vcookie, struct passwd *pw) { struct ts_cookie *cookie = vcookie; - int ret = false; + bool ret = false; debug_decl(timestamp_update, SUDOERS_DEBUG_AUTH); /* Zero timeout means don't use time stamp files. */ @@ -992,7 +992,7 @@ timestamp_update(void *vcookie, struct passwd *pw) ret = true; done: - debug_return_int(ret); + debug_return_bool(ret); } /*