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:
@@ -61,7 +61,7 @@ void
|
||||
initprogname2(const char *name, const char * const * allowed)
|
||||
{
|
||||
const char *progname;
|
||||
int i;
|
||||
size_t i;
|
||||
|
||||
/* Fall back on "name" if getprogname() returns an empty string. */
|
||||
if ((progname = getprogname()) != NULL && *progname != '\0') {
|
||||
|
Reference in New Issue
Block a user