[SCM] Samba Shared Repository - branch master updated
Volker Lendecke
vlendec at samba.org
Mon Jan 18 13:33:03 UTC 2016
The branch, master has been updated
via d51a635 ctdb-build: Fix -O3 developer build
from 594778e ldb-samba: Expand testing of recursive search
https://git.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit d51a63554f5cf385af5b6e4d7aa1fc64dde3641f
Author: Amitay Isaacs <amitay at gmail.com>
Date: Fri Jan 15 12:24:04 2016 +1100
ctdb-build: Fix -O3 developer build
Signed-off-by: Amitay Isaacs <amitay at gmail.com>
Reviewed-by: Volker Lendecke <vl at samba.org>
Autobuild-User(master): Volker Lendecke <vl at samba.org>
Autobuild-Date(master): Mon Jan 18 14:32:05 CET 2016 on sn-devel-144
-----------------------------------------------------------------------
Summary of changes:
ctdb/tests/src/pkt_read_test.c | 2 +-
ctdb/tests/src/pkt_write_test.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/ctdb/tests/src/pkt_read_test.c b/ctdb/tests/src/pkt_read_test.c
index 6dfd5a0..7e089ec 100644
--- a/ctdb/tests/src/pkt_read_test.c
+++ b/ctdb/tests/src/pkt_read_test.c
@@ -39,7 +39,7 @@ static void writer(int fd)
for (i=0; i<1000; i++) {
for (j=0; j<4; j++) {
buflen = pkt_size[j];
- *(uint32_t *)buf = buflen;
+ memcpy(buf, &buflen, sizeof(buflen));
ret = write(fd, buf, buflen);
if (ret < 0) {
diff --git a/ctdb/tests/src/pkt_write_test.c b/ctdb/tests/src/pkt_write_test.c
index 0a5c654..191e8b3 100644
--- a/ctdb/tests/src/pkt_write_test.c
+++ b/ctdb/tests/src/pkt_write_test.c
@@ -157,7 +157,7 @@ static void writer(int fd)
for (i=0; i<4; i++) {
buflen = pkt_size[i];
- *(uint32_t *)buf = buflen;
+ memcpy(buf, &buflen, sizeof(buflen));
req = writer_send(mem_ctx, ev, fd, buf, buflen);
assert(req != NULL);
--
Samba Shared Repository
More information about the samba-cvs
mailing list