From 73c30b09164d84d684a6916749440c184e9a2503 Mon Sep 17 00:00:00 2001
From: lemoer <git@irrelefant.net>
Date: Sat, 17 Mar 2018 01:18:20 +0100
Subject: [PATCH] gluon-respondd: fix whitespace after "if"

---
 package/gluon-respondd/src/respondd.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/package/gluon-respondd/src/respondd.c b/package/gluon-respondd/src/respondd.c
index 6232683b5..0cdf5408f 100644
--- a/package/gluon-respondd/src/respondd.c
+++ b/package/gluon-respondd/src/respondd.c
@@ -229,7 +229,7 @@ static struct json_object * get_stat(void) {
 
 		if (!strcmp(label, "cpu")) {
 			unsigned long long user, nice, system, idle, iowait, irq, softirq;
-			if(sscanf(line, "%*s %"SCNu64" %"SCNu64" %"SCNu64" %"SCNu64" %"SCNu64" %"SCNu64" %"SCNu64,
+			if (sscanf(line, "%*s %"SCNu64" %"SCNu64" %"SCNu64" %"SCNu64" %"SCNu64" %"SCNu64" %"SCNu64,
 			          &user, &nice, &system, &idle, &iowait, &irq, &softirq) != 7)
 				goto invalid_stat_format;
 
@@ -246,25 +246,25 @@ static struct json_object * get_stat(void) {
 			json_object_object_add(stat, "cpu", cpu);
 		} else if (!strcmp(label, "ctxt")) {
 			unsigned long long ctxt;
-			if(sscanf(line, "%*s %"SCNu64, &ctxt) != 1)
+			if (sscanf(line, "%*s %"SCNu64, &ctxt) != 1)
 				goto invalid_stat_format;
 
 			json_object_object_add(stat, "ctxt", json_object_new_int64(ctxt));
 		} else if (!strcmp(label, "intr")) {
 			unsigned long long total_intr;
-			if(sscanf(line, "%*s %"SCNu64, &total_intr) != 1)
+			if (sscanf(line, "%*s %"SCNu64, &total_intr) != 1)
 				goto invalid_stat_format;
 
 			json_object_object_add(stat, "intr", json_object_new_int64(total_intr));
 		} else if (!strcmp(label, "softirq")) {
 			unsigned long long total_softirq;
-			if(sscanf(line, "%*s %"SCNu64, &total_softirq) != 1)
+			if (sscanf(line, "%*s %"SCNu64, &total_softirq) != 1)
 				goto invalid_stat_format;
 
 			json_object_object_add(stat, "softirq", json_object_new_int64(total_softirq));
 		} else if (!strcmp(label, "processes")) {
 			unsigned long long processes;
-			if(sscanf(line, "%*s %"SCNu64, &processes) != 1)
+			if (sscanf(line, "%*s %"SCNu64, &processes) != 1)
 				goto invalid_stat_format;
 
 			json_object_object_add(stat, "processes", json_object_new_int64(processes));
-- 
GitLab