From: Jim Meyering <[email protected]>
* test/testcpg2.c (main): Add a const-discarding cast.
---
test/testcpg2.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/testcpg2.c b/test/testcpg2.c
index 243a02b..94dfb39 100644
--- a/test/testcpg2.c
+++ b/test/testcpg2.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007 Red Hat, Inc.
+ * Copyright (c) 2007, 2009 Red Hat, Inc.
*
* All rights reserved.
*
@@ -78,12 +78,12 @@ int main(int argc, char** argv) {
assert(CS_OK==cpg_local_get(handle,&nodeid));
printf("local_get: %x\n", nodeid);
assert(CS_OK==cpg_join(handle, &group));
- struct iovec msg={"hello", 5};
+ struct iovec msg={(void *)"hello", 5}; /* discard const */
assert(CS_OK==cpg_mcast_joined(handle,CPG_TYPE_AGREED,&msg,1));
cpg_fd_get (handle, &fd);
pfd.fd = fd;
pfd.events = POLLIN;
-
+
poll (&pfd, 1, 1000);
cpg_dispatch(handle, CS_DISPATCH_ALL);
return (0);
--
1.6.2.rc1.285.gc5f54
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais