[Pvfs2-cvs] commit by walt in pvfs2/src/proto: endecode-funcs.h

CVS commit program cvs at parl.clemson.edu
Tue Apr 26 16:59:32 EDT 2011


Update of /projects/cvsroot/pvfs2/src/proto
In directory parlweb1:/tmp/cvs-serv5648

Modified Files:
      Tag: Orange-Branch
	endecode-funcs.h 
Log Message:
formatting changes


Index: endecode-funcs.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/proto/endecode-funcs.h,v
diff -p -u -r1.24.10.1 -r1.24.10.2
--- endecode-funcs.h	30 Apr 2010 20:00:54 -0000	1.24.10.1
+++ endecode-funcs.h	26 Apr 2011 20:59:32 -0000	1.24.10.2
@@ -87,30 +87,30 @@
 #define encode_string(pptr,pbuf) do { \
     u_int32_t len = 0; \
     if (*pbuf) \
-	len = strlen(*pbuf); \
+	    len = strlen(*pbuf); \
     *(u_int32_t *) *(pptr) = htobmi32(len); \
     if (len) { \
-	memcpy(*(pptr)+4, *pbuf, len+1); \
-	int pad = roundup8(4 + len + 1) - (4 + len + 1); \
-	*(pptr) += roundup8(4 + len + 1); \
-	memset(*(pptr)-pad, 0, pad); \
+	    memcpy(*(pptr)+4, *pbuf, len+1); \
+	    int pad = roundup8(4 + len + 1) - (4 + len + 1); \
+	    *(pptr) += roundup8(4 + len + 1); \
+	    memset(*(pptr)-pad, 0, pad); \
     } else { \
-	*(u_int32_t *) (*(pptr)+4) = 0; \
-	*(pptr) += 8; \
+	    *(u_int32_t *) (*(pptr)+4) = 0; \
+	    *(pptr) += 8; \
     } \
 } while (0)
 #else
 #define encode_string(pptr,pbuf) do { \
     u_int32_t len = 0; \
     if (*pbuf) \
-	len = strlen(*pbuf); \
+	    len = strlen(*pbuf); \
     *(u_int32_t *) *(pptr) = htobmi32(len); \
     if (len) { \
-	memcpy(*(pptr)+4, *pbuf, len+1); \
-	*(pptr) += roundup8(4 + len + 1); \
+	    memcpy(*(pptr)+4, *pbuf, len+1); \
+	    *(pptr) += roundup8(4 + len + 1); \
     } else { \
-	*(u_int32_t *) *(pptr) = 0; \
-	*(pptr) += 8; \
+	    *(u_int32_t *) *(pptr) = 0; \
+	    *(pptr) += 8; \
     } \
 } while (0)
 #endif



More information about the Pvfs2-cvs mailing list