aboutsummaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorBihong Yu <yubihong@huawei.com>2020-10-20 11:10:47 +0800
committerDr. David Alan Gilbert <dgilbert@redhat.com>2020-10-26 16:15:04 +0000
commitcbfc71b52b067b3b70a7ace45ff223b58d63a540 (patch)
tree1e08bc088cff72cc7ae0b485569c40f142298d46 /migration
parent49324e939c9d9c963397978ea326665e8a5cf4b5 (diff)
migration: Open brace '{' following function declarations go on the next line
Signed-off-by: Bihong Yu <yubihong@huawei.com> Reviewed-by: Chuan Zheng <zhengchuan@huawei.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <1603163448-27122-8-git-send-email-yubihong@huawei.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r--migration/rdma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/migration/rdma.c b/migration/rdma.c
index 0eb42b74f0..ca4d315597 100644
--- a/migration/rdma.c
+++ b/migration/rdma.c
@@ -273,7 +273,8 @@ static uint64_t htonll(uint64_t v)
return u.llv;
}
-static uint64_t ntohll(uint64_t v) {
+static uint64_t ntohll(uint64_t v)
+{
union { uint32_t lv[2]; uint64_t llv; } u;
u.llv = v;
return ((uint64_t)ntohl(u.lv[0]) << 32) | (uint64_t) ntohl(u.lv[1]);