From 8feb71e1ae770b57041e06c1c85915f8ab268d02 Mon Sep 17 00:00:00 2001
From: Manuel Pitz <manuel.pitz@eonerc.rwth-aachen.de>
Date: Tue, 16 Feb 2021 10:19:04 +0100
Subject: [PATCH] adapt code style

---
 lib/dumper.cpp    | 2 +-
 lib/hooks/dft.cpp | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/dumper.cpp b/lib/dumper.cpp
index aab538bbf..ef2a46f07 100644
--- a/lib/dumper.cpp
+++ b/lib/dumper.cpp
@@ -68,7 +68,7 @@ void Dumper::closeSocket()
 	close(socketFd);
 }
 
-void Dumper::writeData(uint len, double* yData, double* xData)
+void Dumper::writeData(uint len, double *yData, double *xData)
 {
 	ssize_t bytesWritten;
 
diff --git a/lib/hooks/dft.cpp b/lib/hooks/dft.cpp
index 25986e0ab..3d084a1ce 100644
--- a/lib/hooks/dft.cpp
+++ b/lib/hooks/dft.cpp
@@ -298,9 +298,9 @@ public:
 	virtual Hook::Reason process(sample *smp)
 	{
 		assert(state == State::STARTED);
-		for (uint i = 0; i< signalCnt; i++) {
+		for (uint i = 0; i< signalCnt; i++)
 			smp_memory[i][smp_mem_pos % window_size] = smp->data[signal_index[i]].f;
-		}
+
 		smp_mem_pos++;
 
 		bool runDft = false;
@@ -368,7 +368,7 @@ public:
 	/* mem size needs to be equal to window size */
 	void calcDft(paddingType padding, double *ringBuffer, uint ringBufferPos) {
 
-		//prepare sample window The following parts can be combined
+		/* prepare sample window The following parts can be combined */
 		double tmp_smp_window[window_size];
 
 		for (uint i = 0; i< window_size; i++)