From b1f8c65a2cfa307d9b8ed8cc3c8d4819f605e4f6 Mon Sep 17 00:00:00 2001
From: Scott Lamb <slamb@slamb.org>
Date: Wed, 7 Nov 2007 06:45:28 +0000
Subject: [PATCH] Coding style corrections

---
 src/control.c |  2 +-
 src/tincctl.c | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/control.c b/src/control.c
index 57e0ce09..a7958437 100644
--- a/src/control.c
+++ b/src/control.c
@@ -58,7 +58,7 @@ static void handle_control_data(struct bufferevent *event, void *data) {
 	res.id = req.id;
 
 	res_data = evbuffer_new();
-	if (res_data == NULL) {
+	if(res_data == NULL) {
 		res.res_errno = ENOMEM;
 		goto respond;
 	}
diff --git a/src/tincctl.c b/src/tincctl.c
index 39f89426..7e08629e 100644
--- a/src/tincctl.c
+++ b/src/tincctl.c
@@ -335,13 +335,13 @@ static void make_names(void) {
 static int fullread(int fd, void *data, size_t datalen) {
 	int rv, len = 0;
 
-	while (len < datalen) {
+	while(len < datalen) {
 		rv = read(fd, data + len, datalen - len);
 		if(rv == -1 && errno == EINTR)
 			continue;
-		else if (rv == -1)
+		else if(rv == -1)
 			return rv;
-		else if (rv == 0) {
+		else if(rv == 0) {
 			errno = ENODATA;
 			return -1;
 		}
@@ -386,7 +386,7 @@ static int send_ctl_request(int fd, enum request_type type,
 	}
 
 	if(req.length > sizeof req) {
-		if (indata_p == NULL) {
+		if(indata_p == NULL) {
 			errno = EINVAL;
 			return -1;
 		}
@@ -551,7 +551,7 @@ int main(int argc, char *argv[], char *envp[]) {
 	}
 
 	if(!strcasecmp(argv[optind], "dump")) {
-		if (argc < optind + 2) {
+		if(argc < optind + 2) {
 			fprintf(stderr, _("Not enough arguments.\n"));
 			usage(true);
 			return 1;
-- 
2.39.5