summary refs log tree commit diff stats
path: root/src/common/server.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-11-10 18:26:45 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-11-10 18:26:45 +0100
commited970381fb914c413b88718bb7756b0f1282cfad (patch)
tree348e76fe96a72d46950fe7aa21f71e1c84ab09d0 /src/common/server.c
parent584b89bb022c3cb22b45b1285652bb3b5f33ed81 (diff)
Eliminate some more warnings and hide less warnings in VS
Diffstat (limited to 'src/common/server.c')
-rw-r--r--src/common/server.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/common/server.c b/src/common/server.c
index 6c4b3543..360fb2c6 100644
--- a/src/common/server.c
+++ b/src/common/server.c
@@ -1379,15 +1379,21 @@ base64_encode (char *to, char *from, unsigned int len)
 	}
 	if (len)
 	{
-		char three[3]={0,0,0};
-		int i=0;
-		for (i=0;i<len;i++)
+		char three[3] = {0,0,0};
+		unsigned int i;
+		for (i = 0; i < len; i++)
+		{
 			three[i] = *from++;
+		}
 		three_to_four (three, to);
 		if (len == 1)
+		{
 			to[2] = to[3] = '=';
+		}
 		else if (len == 2)
+		{
 			to[3] = '=';
+		}
 		to += 4;
 	};
 	to[0] = 0;