diff options
Diffstat (limited to 'rpc/xdr/src/portmap-xdr.c')
| -rw-r--r-- | rpc/xdr/src/portmap-xdr.c | 54 |
1 files changed, 39 insertions, 15 deletions
diff --git a/rpc/xdr/src/portmap-xdr.c b/rpc/xdr/src/portmap-xdr.c index 45803dcc1..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. @@ -24,11 +23,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 +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) { @@ -92,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; @@ -101,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) { @@ -155,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)) @@ -165,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)) @@ -175,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)) @@ -185,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)) @@ -195,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)) @@ -205,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)) |
