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

@@ -70,7 +70,7 @@ sudo_explicit_bzero(void *v, size_t n)
/* Updating through a volatile pointer should not be optimized away. */
while (n--)
*s++ = '\0';
*s++ = 0;
}
# endif /* HAVE_BZERO */