[PVFS2-CVS]
commit by pw in pvfs2/src/io/description: pint-distribution.h
CVS commit program
cvs at parl.clemson.edu
Fri Oct 29 15:36:34 EDT 2004
Update of /projects/cvsroot/pvfs2/src/io/description
In directory parlweb:/tmp/cvs-serv19057/src/io/description
Modified Files:
pint-distribution.h
Log Message:
make sure stream is at 8-byte boundary to give distribution method plenty of flexibility
Index: pint-distribution.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/description/pint-distribution.h,v
diff -u -p -u -r1.9 -r1.10
--- pint-distribution.h 28 Jul 2004 14:32:41 -0000 1.9
+++ pint-distribution.h 29 Oct 2004 18:36:34 -0000 1.10
@@ -86,7 +86,9 @@ typedef struct PINT_dist_s {
gossip_err("%s: encode_PINT_dist: methods is null\n", __func__); \
exit(1); \
} \
+ align8(pptr); \
(px->methods->encode_lebf) (pptr, px->params); \
+ align8(pptr); \
} while (0)
#define decode_PINT_dist(pptr,x) do { PINT_dist tmp_dist; PINT_dist *px; \
decode_string(pptr, &tmp_dist.dist_name); \
@@ -104,7 +106,9 @@ typedef struct PINT_dist_s {
px->dist_name = (char *) px + roundup8(sizeof(*px)); \
memcpy(px->dist_name, tmp_dist.dist_name, tmp_dist.name_size); \
px->params = (void *)(px->dist_name + roundup8(px->name_size)); \
+ align8(pptr); \
(px->methods->decode_lebf) (pptr, px->params); \
+ align8(pptr); \
} while (0)
#endif
More information about the PVFS2-CVS
mailing list