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:
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user