1
0
Fork 0

Merging upstream version 2.14.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-22 13:00:36 +02:00
parent 0d9181726f
commit f268303a51
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
572 changed files with 4636 additions and 1730 deletions

View file

@ -90,7 +90,7 @@ int wdc_UtilsGetTime(PUtilsTimeInfo timeInfo)
return WDC_STATUS_SUCCESS;
}
int wdc_UtilsCreateDir(char *path)
int wdc_UtilsCreateDir(const char *path)
{
int retStatus;
int status = WDC_STATUS_SUCCESS;
@ -111,7 +111,7 @@ int wdc_UtilsCreateDir(char *path)
return status;
}
int wdc_WriteToFile(char *fileName, char *buffer, unsigned int bufferLen)
int wdc_WriteToFile(const char *fileName, const char *buffer, unsigned int bufferLen)
{
int status = WDC_STATUS_SUCCESS;
FILE *file;
@ -143,7 +143,7 @@ end:
* 1 if the pcSrc string is lexically higher than pcDst or
* -1 if the pcSrc string is lexically lower than pcDst.
*/
int wdc_UtilsStrCompare(char *pcSrc, char *pcDst)
int wdc_UtilsStrCompare(const char *pcSrc, const char *pcDst)
{
while ((toupper(*pcSrc) == toupper(*pcDst)) && (*pcSrc != '\0')) {
pcSrc++;
@ -189,8 +189,3 @@ bool wdc_CheckUuidListSupport(struct nvme_dev *dev, struct nvme_id_uuid_list *uu
return false;
}
bool wdc_UuidEqual(struct nvme_id_uuid_list_entry *entry1, struct nvme_id_uuid_list_entry *entry2)
{
return !memcmp(entry1->uuid, entry2->uuid, NVME_UUID_LEN);
}