2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Make sudo_pow2_roundup() operate on size_t.

This commit is contained in:
Todd C. Miller
2023-07-03 16:51:05 -06:00
parent b926df1df2
commit 56a431f7ea
7 changed files with 24 additions and 10 deletions

View File

@@ -262,7 +262,8 @@ sudo_dso_public bool sudo_regex_compile_v1(void *v, const char *pattern, const c
/* roundup.c */
sudo_dso_public unsigned int sudo_pow2_roundup_v1(unsigned int len);
#define sudo_pow2_roundup(_a) sudo_pow2_roundup_v1((_a))
sudo_dso_public size_t sudo_pow2_roundup_v2(size_t len);
#define sudo_pow2_roundup(_a) sudo_pow2_roundup_v2((_a))
/* secure_path.c */
#define SUDO_PATH_SECURE 0