lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 21 Sep 2009 22:42:34 -0700
From:	Steve Friedl <steve@...xwiz.net>
To:	linux-kernel@...r.kernel.org
Subject: [PATCH 5/8] staging: hv: Style only: moved the pointer-* next to the variable, not the type

The style guide - and good common sense - puts the pointer-to derived
type next to the variable name it belongs with (rather than the type),
and this patch harmonizes the code to that style.

~~~ Steve

Signed-off-by: Steve Friedl <steve@...xwiz.net>

---
 drivers/staging/hv/RingBuffer.c |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/drivers/staging/hv/RingBuffer.c b/drivers/staging/hv/RingBuffer.c
index c50c447..3428372 100644
--- a/drivers/staging/hv/RingBuffer.c
+++ b/drivers/staging/hv/RingBuffer.c
@@ -68,7 +68,7 @@ Description:
 
 --*/
 static inline u32
-GetNextWriteLocation(struct hv_ring_buffer_info* RingInfo)
+GetNextWriteLocation(struct hv_ring_buffer_info *RingInfo)
 {
 	u32 next = RingInfo->RingBuffer->WriteIndex;
 
@@ -87,7 +87,7 @@ Description:
 
 --*/
 static inline void
-SetNextWriteLocation(struct hv_ring_buffer_info* RingInfo, u32 NextWriteLocation)
+SetNextWriteLocation(struct hv_ring_buffer_info *RingInfo, u32 NextWriteLocation)
 {
 	RingInfo->RingBuffer->WriteIndex = NextWriteLocation;
 }
@@ -102,7 +102,7 @@ Description:
 
 --*/
 static inline u32
-GetNextReadLocation(struct hv_ring_buffer_info* RingInfo)
+GetNextReadLocation(struct hv_ring_buffer_info *RingInfo)
 {
 	u32 next = RingInfo->RingBuffer->ReadIndex;
 
@@ -122,7 +122,7 @@ Description:
 
 --*/
 static inline u32
-GetNextReadLocationWithOffset(struct hv_ring_buffer_info* RingInfo, u32 Offset)
+GetNextReadLocationWithOffset(struct hv_ring_buffer_info *RingInfo, u32 Offset)
 {
 	u32 next = RingInfo->RingBuffer->ReadIndex;
 
@@ -143,7 +143,7 @@ Description:
 
 --*/
 static inline void
-SetNextReadLocation(struct hv_ring_buffer_info* RingInfo, u32 NextReadLocation)
+SetNextReadLocation(struct hv_ring_buffer_info *RingInfo, u32 NextReadLocation)
 {
 	RingInfo->RingBuffer->ReadIndex = NextReadLocation;
 }
@@ -175,7 +175,7 @@ Description:
 
 --*/
 static inline u32
-GetRingBufferSize(struct hv_ring_buffer_info* RingInfo)
+GetRingBufferSize(struct hv_ring_buffer_info *RingInfo)
 {
 	return RingInfo->RingDataSize;
 }
@@ -190,7 +190,7 @@ Description:
 
 --*/
 static inline u64
-GetRingBufferIndices(struct hv_ring_buffer_info* RingInfo)
+GetRingBufferIndices(struct hv_ring_buffer_info *RingInfo)
 {
 	return ((u64)RingInfo->RingBuffer->WriteIndex << 32) || RingInfo->RingBuffer->ReadIndex;
 }
@@ -229,13 +229,13 @@ static u32
 CopyToRingBuffer(
 	struct hv_ring_buffer_info	*RingInfo,
 	u32				StartWriteOffset,
-	void *				Src,
+	void  				*Src,
 	u32				SrcLen);
 
 static u32
 CopyFromRingBuffer(
 	struct hv_ring_buffer_info	*RingInfo,
-	void *				Dest,
+	void 				*Dest,
 	u32				DestLen,
 	u32				StartReadOffset);
 
@@ -533,10 +533,10 @@ static u32
 CopyToRingBuffer(
 	struct hv_ring_buffer_info	*RingInfo,
 	u32				StartWriteOffset,
-	void *				Src,
+	void  				*Src,
 	u32				SrcLen)
 {
-	void * ringBuffer=GetRingBuffer(RingInfo);
+	void *ringBuffer=GetRingBuffer(RingInfo);
 	u32 ringBufferSize=GetRingBufferSize(RingInfo);
 	u32 fragLen;
 
@@ -573,11 +573,11 @@ Description:
 static u32
 CopyFromRingBuffer(
 	struct hv_ring_buffer_info	*RingInfo,
-	void *				Dest,
+	void 				*Dest,
 	u32				DestLen,
 	u32				StartReadOffset)
 {
-	void * ringBuffer=GetRingBuffer(RingInfo);
+	void *ringBuffer=GetRingBuffer(RingInfo);
 	u32 ringBufferSize=GetRingBufferSize(RingInfo);
 
 	u32 fragLen;
-- 
1.6.5.rc1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ