Skip to content

Commit

Permalink
modify ret type from int to bool (#298)
Browse files Browse the repository at this point in the history
* modify ret type from int to bool

* change debug_return_int to debug_return_bool

* modify ret type
  • Loading branch information
rtczza authored Aug 23, 2023
1 parent 0910511 commit 60e5842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/sudoers/timestamp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -992,7 +992,7 @@ timestamp_update(void *vcookie, struct passwd *pw)
ret = true;

done:
debug_return_int(ret);
debug_return_bool(ret);
}

/*
Expand Down

0 comments on commit 60e5842

Please sign in to comment.