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

@@ -704,7 +704,8 @@ display_usage(FILE *fp)
{
const char * const **uvecs = sudo_usage;
const char * const *uvec;
int i, indent;
size_t i;
int indent;
/*
* Use usage vectors appropriate to the progname.
@@ -725,7 +726,7 @@ display_usage(FILE *fp)
/*
* Display usage message and exit.
*/
void
sudo_noreturn void
usage(void)
{
display_usage(stderr);
@@ -764,7 +765,7 @@ help_out(const char *buf)
return fputs(buf, stdout);
}
static void
sudo_noreturn static void
help(void)
{
struct sudo_lbuf lbuf;