[PVFS2-CVS]
commit by neill in pvfs2/src/client/sysint: client-state-machine.c
CVS commit program
cvs at parl.clemson.edu
Wed Mar 10 16:02:40 EST 2004
Update of /projects/cvsroot/pvfs2/src/client/sysint
In directory parlweb:/tmp/cvs-serv32308/src/client/sysint
Modified Files:
client-state-machine.c
Log Message:
- return decode errors if we get them
Index: client-state-machine.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/client/sysint/client-state-machine.c,v
diff -p -u -r1.40 -r1.41
--- client-state-machine.c 16 Feb 2004 21:35:27 -0000 1.40
+++ client-state-machine.c 10 Mar 2004 21:02:40 -0000 1.41
@@ -178,19 +178,14 @@ int PINT_serv_decode_resp(void *encoded_
int actual_resp_sz,
struct PVFS_server_resp **resp_out_pp)
{
- int ret;
-
- ret = PINT_decode(encoded_resp_p,
- PINT_DECODE_RESP,
- decoded_resp_p, /* holds data on decoded resp */
- *svr_addr_p,
- actual_resp_sz);
- assert(ret > -1);
-
- /* point a reasonably typed pointer at the response data */
- *resp_out_pp = (struct PVFS_server_resp *) decoded_resp_p->buffer;
-
- return 0;
+ int ret = PINT_decode(encoded_resp_p, PINT_DECODE_RESP,
+ decoded_resp_p, /* holds data on decoded resp */
+ *svr_addr_p, actual_resp_sz);
+ if (ret > -1)
+ {
+ *resp_out_pp = (struct PVFS_server_resp *)decoded_resp_p->buffer;
+ }
+ return ret;
}
int PINT_serv_free_msgpair_resources(
More information about the PVFS2-CVS
mailing list