Skip to content

Commit

Permalink
quick: Fixing conversion warning found in clang FreeBSD
Browse files Browse the repository at this point in the history
Fixing a conversion warning for the ZONE_NO_RESET option to ata security options that are passed in.
Warning was only seen in FreeBSD 14's clang

Signed-off-by: Tyler Erickson <tyler.erickson@seagate.com>
  • Loading branch information
vonericsen committed Apr 29, 2024
1 parent 856f3ff commit 065e448
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion subprojects/opensea-transport
9 changes: 8 additions & 1 deletion utils/C/openSeaChest/openSeaChest_Erase.c
Original file line number Diff line number Diff line change
Expand Up @@ -2748,7 +2748,14 @@ int32_t main(int argc, char *argv[])
ataPassword.passwordType = ATA_SECURITY_USING_MASTER_PW;
memcpy(ataPassword.password, ATA_SECURITY_PASSWORD, ATA_SECURITY_PASSWORD_BYTE_COUNT);//ATA_SECURITY_PASSWORD_BYTE_COUNT shouldn't ever be > 32. Should be caught above.
ataPassword.passwordLength = ATA_SECURITY_PASSWORD_BYTE_COUNT;
ataPassword.zacSecurityOption = ZONE_NO_RESET;
if (ZONE_NO_RESET == goTrue)
{
ataPassword.zacSecurityOption = ATA_ZAC_ERASE_FULL_ZONES;
}
else
{
ataPassword.zacSecurityOption = ATA_ZAC_ERASE_EMPTY_ZONES;
}
eATASecurityEraseType ataSecureEraseType = ATA_SECURITY_ERASE_STANDARD_ERASE;
if (ATA_SECURITY_ERASE_ENHANCED_FLAG)
{
Expand Down

0 comments on commit 065e448

Please sign in to comment.