[PVFS2-CVS] commit by pw in pvfs2/src/io/description: pint-request.c

CVS commit program cvs at parl.clemson.edu
Thu Mar 31 14:13:20 EST 2005


Update of /projects/cvsroot/pvfs2/src/io/description
In directory parlweb:/tmp/cvs-serv3623/src/io/description

Modified Files:
	pint-request.c 
Log Message:
64-bit -1 is different than 32-bit -1; fix ia64 server crash


Index: pint-request.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/description/pint-request.c,v
diff -u -p -u -r1.48 -r1.49
--- pint-request.c	7 Mar 2005 21:42:27 -0000	1.48
+++ pint-request.c	31 Mar 2005 19:13:19 -0000	1.49
@@ -844,11 +844,12 @@ int PINT_Request_decode(struct PINT_Requ
 		return -1;
 	for (r = 0; r <= PINT_REQUEST_NEST_SIZE(req); r++)
 	{
-		if (req[r].ereq == (PINT_Request *) -1)
+		/* type must match the encoding type in encode_PVFS_Request */
+		if ((u_int32_t)(intptr_t) req[r].ereq == (u_int32_t) -1)
 			req[r].ereq = 0;
 		else
 			req[r].ereq = &req[0] + (unsigned long) req[r].ereq;
-		if (req[r].sreq == (PINT_Request *) -1)
+		if ((u_int32_t)(intptr_t) req[r].sreq == (u_int32_t) -1)
 			req[r].sreq = 0;
 		else
 			req[r].sreq = &req[0] + (unsigned long) req[r].sreq;



More information about the PVFS2-CVS mailing list