From bcb7e7c4c916ba0bdeb3db79c509b4c88ebe4093 Mon Sep 17 00:00:00 2001
From: Erik Alexandre Pucci <eap08@c3sl.ufpr.br>
Date: Wed, 11 Aug 2010 11:05:58 -0300
Subject: [PATCH] client.c: Removed white spaces between brackets of if/while's

Removed for standard reasons.

Signed-off-by: Erik Alexandre Pucci <eap08@c3sl.ufpr.br>
Acked-by: Ricardo Tavares de Oliveira <rto07@c3sl.ufpr.br>
Signed-off-by: Danilo K. S. Yorinori <danilok@c3sl.ufpr.br>
---
 src/client.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/client.c b/src/client.c
index b7010c5..5bf1e90 100644
--- a/src/client.c
+++ b/src/client.c
@@ -277,7 +277,7 @@ static char *read_version_file(char *basedir)
     DEBUG("Filepath %s\n", filepath);
 
     /* Allocate memory for version text */
-    if ( ! (version = (char *) malloc(11 * sizeof(char))) )
+    if (! (version = (char *) malloc(11 * sizeof(char))))
     {
         ERROR("ERROR (3): Memory allocation error.\n");
         /* Error while trying to allocate memory for version string */
@@ -285,7 +285,7 @@ static char *read_version_file(char *basedir)
     }
 
     /* Open version file */
-    if ( ! (f = fopen(filepath, "r")) )
+    if (! (f = fopen(filepath, "r")))
     {
         ERROR("ERROR (3): Problem while trying to open version file.\n");
         ERROR("File: %s.\n", filepath);
@@ -409,7 +409,7 @@ char *read_xml_file(char *basedir)
 
     /* Open XML collect data file and check for errors */
     xmlFile = fopen(filePath, "r");
-    if ( xmlFile == NULL )
+    if (xmlFile == NULL)
     {
         ERROR("ERROR (12): Problem while trying to open the ");
         ERROR("collect_data.xml file.\n");
@@ -419,9 +419,9 @@ char *read_xml_file(char *basedir)
 
     /* Read and copy from data file to string */
     xmlInventory = (char *) malloc(sizeof(char));
-    while ( (aux = fgetc(xmlFile)) != EOF )
+    while ((aux = fgetc(xmlFile)) != EOF)
     {
-        if ( tam <= i )
+        if (tam <= i)
         {
             tam *= 2;
             xmlInventory = (char *) realloc(xmlInventory, tam * sizeof(char));
-- 
GitLab