summaryrefslogtreecommitdiffstats
path: root/rpc/xdr/src/portmap-xdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/xdr/src/portmap-xdr.c')
-rw-r--r--rpc/xdr/src/portmap-xdr.c30
1 files changed, 28 insertions, 2 deletions
diff --git a/rpc/xdr/src/portmap-xdr.c b/rpc/xdr/src/portmap-xdr.c
index 436e974a871..993a718c85b 100644
--- a/rpc/xdr/src/portmap-xdr.c
+++ b/rpc/xdr/src/portmap-xdr.c
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2010-2011 Gluster, Inc. <http://www.gluster.com>
+ Copyright (c) 2007-2011 Gluster, Inc. <http://www.gluster.com>
This file is part of GlusterFS.
GlusterFS is free software; you can redistribute it and/or modify
@@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>.
*/
+#include "xdr-common.h"
/*
* Please do not edit this file.
@@ -24,11 +25,13 @@
*/
#include "portmap-xdr.h"
-#include "compat.h"
bool_t
xdr_pmap_port_by_brick_req (XDR *xdrs, pmap_port_by_brick_req *objp)
{
+ register int32_t *buf;
+ buf = NULL;
+
if (!xdr_string (xdrs, &objp->brick, ~0))
return FALSE;
return TRUE;
@@ -38,6 +41,7 @@ bool_t
xdr_pmap_port_by_brick_rsp (XDR *xdrs, pmap_port_by_brick_rsp *objp)
{
register int32_t *buf;
+ buf = NULL;
if (xdrs->x_op == XDR_ENCODE) {
@@ -92,6 +96,9 @@ xdr_pmap_port_by_brick_rsp (XDR *xdrs, pmap_port_by_brick_rsp *objp)
bool_t
xdr_pmap_brick_by_port_req (XDR *xdrs, pmap_brick_by_port_req *objp)
{
+ register int32_t *buf;
+ buf = NULL;
+
if (!xdr_int (xdrs, &objp->port))
return FALSE;
return TRUE;
@@ -101,6 +108,7 @@ bool_t
xdr_pmap_brick_by_port_rsp (XDR *xdrs, pmap_brick_by_port_rsp *objp)
{
register int32_t *buf;
+ buf = NULL;
if (xdrs->x_op == XDR_ENCODE) {
@@ -155,6 +163,9 @@ xdr_pmap_brick_by_port_rsp (XDR *xdrs, pmap_brick_by_port_rsp *objp)
bool_t
xdr_pmap_signup_req (XDR *xdrs, pmap_signup_req *objp)
{
+ register int32_t *buf;
+ buf = NULL;
+
if (!xdr_string (xdrs, &objp->brick, ~0))
return FALSE;
if (!xdr_int (xdrs, &objp->port))
@@ -165,6 +176,9 @@ xdr_pmap_signup_req (XDR *xdrs, pmap_signup_req *objp)
bool_t
xdr_pmap_signup_rsp (XDR *xdrs, pmap_signup_rsp *objp)
{
+ register int32_t *buf;
+ buf = NULL;
+
if (!xdr_int (xdrs, &objp->op_ret))
return FALSE;
if (!xdr_int (xdrs, &objp->op_errno))
@@ -175,6 +189,9 @@ xdr_pmap_signup_rsp (XDR *xdrs, pmap_signup_rsp *objp)
bool_t
xdr_pmap_signin_req (XDR *xdrs, pmap_signin_req *objp)
{
+ register int32_t *buf;
+ buf = NULL;
+
if (!xdr_string (xdrs, &objp->brick, ~0))
return FALSE;
if (!xdr_int (xdrs, &objp->port))
@@ -185,6 +202,9 @@ xdr_pmap_signin_req (XDR *xdrs, pmap_signin_req *objp)
bool_t
xdr_pmap_signin_rsp (XDR *xdrs, pmap_signin_rsp *objp)
{
+ register int32_t *buf;
+ buf = NULL;
+
if (!xdr_int (xdrs, &objp->op_ret))
return FALSE;
if (!xdr_int (xdrs, &objp->op_errno))
@@ -195,6 +215,9 @@ xdr_pmap_signin_rsp (XDR *xdrs, pmap_signin_rsp *objp)
bool_t
xdr_pmap_signout_req (XDR *xdrs, pmap_signout_req *objp)
{
+ register int32_t *buf;
+ buf = NULL;
+
if (!xdr_string (xdrs, &objp->brick, ~0))
return FALSE;
if (!xdr_int (xdrs, &objp->port))
@@ -205,6 +228,9 @@ xdr_pmap_signout_req (XDR *xdrs, pmap_signout_req *objp)
bool_t
xdr_pmap_signout_rsp (XDR *xdrs, pmap_signout_rsp *objp)
{
+ register int32_t *buf;
+ buf = NULL;
+
if (!xdr_int (xdrs, &objp->op_ret))
return FALSE;
if (!xdr_int (xdrs, &objp->op_errno))