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:
@@ -75,7 +75,7 @@ sudo_uuid_to_string_v1(unsigned char uuid[16], char *dst, size_t dstsiz)
|
||||
{
|
||||
const char hex[] = "0123456789abcdef";
|
||||
char *cp = dst;
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
if (dstsiz < sizeof("123e4567-e89b-12d3-a456-426655440000"))
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user