git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ctdb-build: Fix -O3 developer build
[obnox/samba/samba-obnox.git]
/
ctdb
/
tests
/
src
/
pkt_write_test.c
diff --git
a/ctdb/tests/src/pkt_write_test.c
b/ctdb/tests/src/pkt_write_test.c
index 0a5c65406712aa6237a524366659cb2007c9663c..191e8b3e8947c27f39a38ba8e20382bf8e70268e 100644
(file)
--- 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);