From e9212a2a7f3e4e720129a9422ff177e1c9fddda1 Mon Sep 17 00:00:00 2001
From: Matthias Andree <matthias.andree@gmx.de>
Date: Sun, 12 Dec 2010 18:25:51 +0100
Subject: Fix compiler warnings.

---
 socket.c   | 2 +-
 transact.c | 2 +-
 unmime.c   | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/socket.c b/socket.c
index 64b53b5e..1adc839d 100644
--- a/socket.c
+++ b/socket.c
@@ -1065,7 +1065,7 @@ int SockClose(int sock)
  */
 static ssize_t cygwin_read(int sock, void *buf, size_t count)
 {
-    char *bp = buf;
+    char *bp = (char *)buf;
     size_t n = 0;
 
     if ((n = read(sock, bp, count)) == (size_t)-1)
diff --git a/transact.c b/transact.c
index 1b4e3755..55d25168 100644
--- a/transact.c
+++ b/transact.c
@@ -630,7 +630,7 @@ eoh:
 	     * our terminating combination \n\0, we move backwards to
 	     * make sure that we don't catch some \n\0 stored in the
 	     * decoded part of the message */
-	    for (tcp = line + linelen - 1; tcp > line && (*tcp != 0 || tcp[-1] != '\n'); tcp--);
+	    for (tcp = line + linelen - 1; tcp > line && (*tcp != 0 || tcp[-1] != '\n'); tcp--) { }
 	    if  (tcp > line) linelen = tcp - line;
 	}
 
diff --git a/unmime.c b/unmime.c
index 67028e77..f799ff92 100644
--- a/unmime.c
+++ b/unmime.c
@@ -292,7 +292,7 @@ static char *GetBoundary(char *CntType)
   do {
     p2 = strchr(p1, ';'); 
     if (p2)
-      for (p2++; isspace((unsigned char)*p2); p2++);
+      for (p2++; isspace((unsigned char)*p2); p2++) { }
 
     p1 = p2;
   } while ((p1) && (strncasecmp(p1, "boundary", 8) != 0));
@@ -418,7 +418,7 @@ int MimeBodyType(char *hdrs, int WantDecode)
 	     */
 
 	    /* Skip the "Content-Type:" part and whitespace after it */
-	    for (NxtHdr += 13; ((*NxtHdr == ' ') || (*NxtHdr == '\t')); NxtHdr++);
+	    for (NxtHdr += 13; ((*NxtHdr == ' ') || (*NxtHdr == '\t')); NxtHdr++) { }
 
 	    /* 
 	     * Get the full value of the Content-Type header;
-- 
cgit v1.2.3