summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport
diff options
context:
space:
mode:
authorRaghavendra Gowdappa <rgowdapp@redhat.com>2018-11-16 16:27:17 +0530
committerRaghavendra G <rgowdapp@redhat.com>2018-11-28 15:11:59 +0000
commit18b6d7ce7d490e807815270918a17a4b392a829d (patch)
tree7ca2d0da54400db14fefc36663f360a06c4c2fc8 /rpc/rpc-transport
parent9f9f46ff2d30ff87a6a4f8c2af491ea1aa92fbb2 (diff)
libglusterfs: rename macros roof and floor to not conflict with math.h
Change-Id: I666eeb63ebd000711b3f793b948d4e0c04b1a242 Signed-off-by: Raghavendra Gowdappa <rgowdapp@redhat.com> Updates: bz#1644629
Diffstat (limited to 'rpc/rpc-transport')
-rw-r--r--rpc/rpc-transport/socket/src/socket.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
index a770e6954be..dc227137d57 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -1744,9 +1744,9 @@ __socket_read_accepted_successful_reply(rpc_transport_t *this)
free(read_rsp.xdata.xdata_val);
- /* need to round off to proper roof (%4), as XDR packing pads
+ /* need to round off to proper gf_roof (%4), as XDR packing pads
the end of opaque object with '0' */
- size = roof(read_rsp.xdata.xdata_len, 4);
+ size = gf_roof(read_rsp.xdata.xdata_len, 4);
if (!size) {
frag->call_body.reply
@@ -1874,9 +1874,9 @@ __socket_read_accepted_successful_reply_v2(rpc_transport_t *this)
free(read_rsp.xdata.pairs.pairs_val);
- /* need to round off to proper roof (%4), as XDR packing pads
+ /* need to round off to proper gf_roof (%4), as XDR packing pads
the end of opaque object with '0' */
- size = roof(read_rsp.xdata.xdr_size, 4);
+ size = gf_roof(read_rsp.xdata.xdr_size, 4);
if (!size) {
frag->call_body.reply