diff options
Diffstat (limited to 'rpc')
| -rw-r--r-- | rpc/xdr/src/Makefile.am | 72 | ||||
| -rw-r--r-- | rpc/xdr/src/xdr-generic.c | 6 | 
2 files changed, 39 insertions, 39 deletions
diff --git a/rpc/xdr/src/Makefile.am b/rpc/xdr/src/Makefile.am index 1c70dc9db19..af9e15cfddf 100644 --- a/rpc/xdr/src/Makefile.am +++ b/rpc/xdr/src/Makefile.am @@ -23,91 +23,91 @@ CLEANFILES = $(XDRSOURCES) $(XDRHEADERS)  EXTRA_DIST = $(XDRGENFILES)  glusterfs3-xdr.c: glusterfs3-xdr.x glusterfs3-xdr.h -	@if test -f $<; then \ -		$(top_srcdir)/build-aux/xdrgen source $< ; \ +	@if test -f ${@:.c=.x}; then \ +		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \  	fi  glusterfs3-xdr.h: glusterfs3-xdr.x -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen header $< ; \ +	@if test -f ${@:.h=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \  	fi  cli1-xdr.c: cli1-xdr.x cli1-xdr.h -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen source $< ; \ +	@if test -f ${@:.c=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \  	fi  cli1-xdr.h: cli1-xdr.x -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen header $< ; \ +	@if test -f ${@:.h=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \  	fi  nlm4-xdr.c: nlm4-xdr.x nlm4-xdr.h -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen source $< ; \ +	@if test -f ${@:.c=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \  	fi  nlm4-xdr.h: nlm4-xdr.x -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen header $< ; \ +	@if test -f ${@:.h=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \  	fi  nsm-xdr.c: nsm-xdr.x nsm-xdr.h -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen source $< ; \ +	@if test -f ${@:.c=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \  	fi  nsm-xdr.h: nsm-xdr.x -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen header $< ; \ +	@if test -f ${@:.h=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \  	fi  rpc-common-xdr.c: rpc-common-xdr.x rpc-common-xdr.h -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen source $< ; \ +	@if test -f ${@:.c=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \  	fi  rpc-common-xdr.h: rpc-common-xdr.x -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen header $< ; \ +	@if test -f ${@:.h=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \  	fi  glusterd1-xdr.c: glusterd1-xdr.x glusterd1-xdr.h -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen source $< ; \ +	@if test -f ${@:.c=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \  	fi  glusterd1-xdr.h: glusterd1-xdr.x -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen header $< ; \ +	@if test -f ${@:.h=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \  	fi  acl3-xdr.c: acl3-xdr.x acl3-xdr.h -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen source $< ; \ +	@if test -f ${@:.c=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \  	fi  acl3-xdr.h: acl3-xdr.x -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen header $< ; \ +	@if test -f ${@:.h=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \  	fi  portmap-xdr.c: portmap-xdr.x portmap-xdr.h -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen source $< ; \ +	@if test -f ${@:.c=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \  	fi  portmap-xdr.h: portmap-xdr.x -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen header $< ; \ +	@if test -f ${@:.h=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \  	fi  mount3udp.c: mount3udp.x mount3udp.h -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen source $< ; \ +	@if test -f ${@:.c=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \  	fi  mount3udp.h: mount3udp.x -	@if test -f $< ; then \ -		$(top_srcdir)/build-aux/xdrgen header $< ; \ +	@if test -f ${@:.h=.x} ; then \ +		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \  	fi diff --git a/rpc/xdr/src/xdr-generic.c b/rpc/xdr/src/xdr-generic.c index ee29f3dfa4e..58d1ee77ee2 100644 --- a/rpc/xdr/src/xdr-generic.c +++ b/rpc/xdr/src/xdr-generic.c @@ -24,7 +24,7 @@ xdr_serialize_generic (struct iovec outmsg, void *res, xdrproc_t proc)          xdrmem_create (&xdr, outmsg.iov_base, (unsigned int)outmsg.iov_len,                         XDR_ENCODE); -        if (!proc (&xdr, res, 0)) { +        if (!proc (&xdr, res)) {                  ret = -1;                  goto ret;          } @@ -48,7 +48,7 @@ xdr_to_generic (struct iovec inmsg, void *args, xdrproc_t proc)          xdrmem_create (&xdr, inmsg.iov_base, (unsigned int)inmsg.iov_len,                         XDR_DECODE); -        if (!proc (&xdr, args, 0)) { +        if (!proc (&xdr, args)) {                  ret  = -1;                  goto ret;          } @@ -72,7 +72,7 @@ xdr_to_generic_payload (struct iovec inmsg, void *args, xdrproc_t proc,          xdrmem_create (&xdr, inmsg.iov_base, (unsigned int)inmsg.iov_len,                         XDR_DECODE); -        if (!proc (&xdr, args, 0)) { +        if (!proc (&xdr, args)) {                  ret  = -1;                  goto ret;          }  | 
