From 6dbb8b2dc9c4e33081e5e1d21880f1d7968987a6 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 13 Nov 2014 21:47:06 +0100
Subject: [PATCH] Server: Minor data type fix.

---
 src/client/draw_wins.c | 2 +-
 src/server/run.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/client/draw_wins.c b/src/client/draw_wins.c
index 1a3c9ad..5b87646 100644
--- a/src/client/draw_wins.c
+++ b/src/client/draw_wins.c
@@ -325,7 +325,7 @@ static char * winconf_geom_helper(struct Win * win, char axis, char * sep,
     }
     char * p11 = ")";
     uint8_t size =   strlen(p0) + strlen(p1) + strlen(p2) + strlen(sep)
-                   + strlen(p4) + strlen(sep) + strlen(p6) + strlen(value_prefix)
+                   + strlen(p4) + strlen(sep) + strlen(p6) +strlen(value_prefix)
                    + strlen(p8) + strlen(p9) + strlen(p10) + strlen(p11)
                    + strlen(newlines);
     char * msg = try_malloc(size, __func__);
diff --git a/src/server/run.c b/src/server/run.c
index 708bd96..ea8d608 100644
--- a/src/server/run.c
+++ b/src/server/run.c
@@ -236,7 +236,7 @@ static int16_t * build_whitelist()
 
 static uint8_t thing_in_whitelist(uint8_t id, int16_t * whitelist)
 {
-    int16_t i;
+    uint16_t i;
     for (i = 0; -1 < whitelist[i]; i++)
     {
         if ((int16_t) id == whitelist[i])
-- 
2.30.2