|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XENVBD PATCH 2/2] xsd_errors structs are now const
Fix the pointer type in __StoreCheckResponse.
Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>
---
src/xencrsh/store.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/xencrsh/store.c b/src/xencrsh/store.c
index cc7cf8b..f118646 100644
--- a/src/xencrsh/store.c
+++ b/src/xencrsh/store.c
@@ -549,10 +549,10 @@ __StoreCheckResponse(
for (Index = 0;
Index < sizeof (xsd_errors) / sizeof (xsd_errors[0]);
Index++) {
- struct xsd_errors *Entry = &xsd_errors[Index];
- PCHAR Error =
Response->Segment[RESPONSE_PAYLOAD_SEGMENT].Data;
- ULONG Length =
Response->Segment[RESPONSE_PAYLOAD_SEGMENT].Length;
-
+ const struct xsd_errors *Entry = &xsd_errors[Index];
+ PCHAR Error =
Response->Segment[RESPONSE_PAYLOAD_SEGMENT].Data;
+ ULONG Length =
Response->Segment[RESPONSE_PAYLOAD_SEGMENT].Length;
+
if (strncmp(Error, Entry->errstring, Length) == 0) {
LogTrace("%s\n", Error);
ERRNO_TO_STATUS(Entry->errnum, status);
--
2.55.0.windows.3
--
Ngoc Tu Dinh | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |