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

@@ -98,7 +98,7 @@ sudo_ev_activate_sigevents(struct sudo_event_base *base)
{
struct sudo_event *ev;
sigset_t set, oset;
int i;
unsigned int i;
debug_decl(sudo_ev_activate_sigevents, SUDO_DEBUG_EVENT);
/*
@@ -168,7 +168,7 @@ signal_pipe_cb(int fd, int what, void *v)
static int
sudo_ev_base_init(struct sudo_event_base *base)
{
int i;
unsigned int i;
debug_decl(sudo_ev_base_init, SUDO_DEBUG_EVENT);
TAILQ_INIT(&base->events);
@@ -218,7 +218,7 @@ void
sudo_ev_base_free_v1(struct sudo_event_base *base)
{
struct sudo_event *ev, *next;
int i;
unsigned int i;
debug_decl(sudo_ev_base_free, SUDO_DEBUG_EVENT);
if (base == NULL)