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.c53
1 files changed, 39 insertions, 14 deletions
diff --git a/rpc/xdr/src/portmap-xdr.c b/rpc/xdr/src/portmap-xdr.c
index ddf6c47d7..4766122e6 100644
--- a/rpc/xdr/src/portmap-xdr.c
+++ b/rpc/xdr/src/portmap-xdr.c
@@ -1,22 +1,21 @@
/*
- Copyright (c) 2010 Gluster, Inc. <http://www.gluster.com>
+ Copyright (c) 2007-2012 Red Hat, Inc. <http://www.redhat.com>
This file is part of GlusterFS.
- GlusterFS is free software; you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published
- by the Free Software Foundation; either version 3 of the License,
- or (at your option) any later version.
-
- GlusterFS is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see
- <http://www.gnu.org/licenses/>.
+ This file is licensed to you under your choice of the GNU Lesser
+ General Public License, version 3 or any later version (LGPLv3 or
+ later), or the GNU General Public License, version 2 (GPLv2), in all
+ cases as published by the Free Software Foundation.
*/
+#include "xdr-common.h"
+#include "compat.h"
+
+#if defined(__GNUC__)
+#if __GNUC__ >= 4
+#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
+#endif
+#endif
/*
* Please do not edit this file.
@@ -28,6 +27,9 @@
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;
@@ -37,6 +39,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) {
@@ -91,6 +94,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;
@@ -100,6 +106,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) {
@@ -154,6 +161,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))
@@ -164,6 +174,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))
@@ -174,6 +187,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))
@@ -184,6 +200,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))
@@ -194,6 +213,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))
@@ -204,6 +226,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))