Avoid compiler casting warnings by assigning to the same type where possible

This saves instructions that are related to casting as well as compiler warnings.
This commit is contained in:
Rose
2023-05-18 14:38:18 -04:00
parent a0b074cc9c
commit e54ba33ea0
50 changed files with 175 additions and 168 deletions

View File

@@ -198,7 +198,7 @@ json_array_to_strvec(struct eventlog_json_object *array)
static bool
json_store_runargv(struct json_item *item, struct eventlog *evlog)
{
int i;
size_t i;
debug_decl(json_store_runargv, SUDO_DEBUG_UTIL);
if (evlog->argv != NULL) {
@@ -214,7 +214,7 @@ json_store_runargv(struct json_item *item, struct eventlog *evlog)
static bool
json_store_runenv(struct json_item *item, struct eventlog *evlog)
{
int i;
size_t i;
debug_decl(json_store_runenv, SUDO_DEBUG_UTIL);
if (evlog->envp != NULL) {
@@ -230,7 +230,7 @@ json_store_runenv(struct json_item *item, struct eventlog *evlog)
static bool
json_store_runenv_override(struct json_item *item, struct eventlog *evlog)
{
int i;
size_t i;
debug_decl(json_store_runenv_override, SUDO_DEBUG_UTIL);
if (evlog->env_add != NULL) {