|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XENBUS PATCH 3/3] xsd_errors structs are now const
Fix the pointer type in StoreCheckResponse.
Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>
---
src/xenbus/store.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xenbus/store.c b/src/xenbus/store.c
index b0db5a8..6c2ffa5 100644
--- a/src/xenbus/store.c
+++ b/src/xenbus/store.c
@@ -1007,7 +1007,7 @@ StoreCheckResponse(
for (Index = 0;
Index < sizeof (xsd_errors) / sizeof (xsd_errors[0]);
Index++) {
- struct xsd_errors *Entry = &xsd_errors[Index];
+ const struct xsd_errors *Entry = &xsd_errors[Index];
if (strncmp(Error, Entry->errstring, Length) == 0) {
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 |