summaryrefslogtreecommitdiff
path: root/source3/locking/locking.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-09-18 06:20:28 +0000
committerJeremy Allison <jra@samba.org>2001-09-18 06:20:28 +0000
commit36a6611da2820da3635a8158dd26f41732b5b4fd (patch)
treedc2816d20c720c47c331322c9656a77bc0308a14 /source3/locking/locking.c
parent15a6649c01195f2b385fbfd7e54279c1acc3a878 (diff)
downloadsamba-36a6611da2820da3635a8158dd26f41732b5b4fd.tar.gz
samba-36a6611da2820da3635a8158dd26f41732b5b4fd.tar.bz2
samba-36a6611da2820da3635a8158dd26f41732b5b4fd.zip
Use structure copy to fix unaligned accesses on 64bit architectures on
Linux. Jeremy. (This used to be commit b4b891279b6292237113456f1bb0d4393f1f9af1)
Diffstat (limited to 'source3/locking/locking.c')
-rw-r--r--source3/locking/locking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 750ebe6716..a942965684 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -456,7 +456,7 @@ static void fill_share_mode(char *p, files_struct *fsp, uint16 port, uint16 op_t
e->share_mode = fsp->share_mode;
e->op_port = port;
e->op_type = op_type;
- memcpy((char *)&e->time, (char *)&fsp->open_time, sizeof(struct timeval));
+ e->time = fsp->open_time;
}
/*******************************************************************