Skip to content

Commit

Permalink
fixup! misc/cpp: add explicit cast of void* and change string concat …
Browse files Browse the repository at this point in the history
…to accomodate C++
  • Loading branch information
Baekalfen committed May 8, 2024
1 parent 9241b3e commit 54e9310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvme/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ int nvme_init(struct nvme_ctrl *ctrl, const char *bdf, const struct nvme_ctrl_op
}

memcpy(ctrl->serial, ((char*) vaddr) + NVME_IDENTIFY_CTRL_SERIAL_NUMBER, sizeof(ctrl->serial));
oacs = le16_to_cpu(*(leint16_t *)(((uint8_t*) vaddr) + NVME_IDENTIFY_CTRL_OACS));
oacs = le16_to_cpu(*(leint16_t *)(((uintptr_t) vaddr) + NVME_IDENTIFY_CTRL_OACS));

if (oacs & NVME_IDENTIFY_CTRL_OACS_DBCONFIG)
ret = nvme_init_dbconfig(ctrl);
Expand Down

0 comments on commit 54e9310

Please sign in to comment.