[gmime] No need for 'need' to be size_t



commit ed34d640b3dced86f212c654ffc421d0ac6418a5
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Mon Dec 19 22:04:27 2011 -0500

    No need for 'need' to be size_t

 gmime/gmime-utils.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gmime/gmime-utils.c b/gmime/gmime-utils.c
index a6acb46..7c06e2a 100644
--- a/gmime/gmime-utils.c
+++ b/gmime/gmime-utils.c
@@ -1723,8 +1723,8 @@ quoted_decode (const unsigned char *in, size_t len, unsigned char *out, int *sta
 	register unsigned char *outptr;
 	const unsigned char *inend;
 	unsigned char c, c1;
-	size_t need, i;
 	guint32 saved;
+	int need;
 	
 	if (len == 0)
 		return 0;
@@ -1733,7 +1733,7 @@ quoted_decode (const unsigned char *in, size_t len, unsigned char *out, int *sta
 	outptr = out;
 	inptr = in;
 	
-	need = (size_t) *state;
+	need = *state;
 	saved = *save;
 	
 	if (need > 0) {
@@ -1803,7 +1803,7 @@ quoted_decode (const unsigned char *in, size_t len, unsigned char *out, int *sta
 		}
 	}
 	
-	*state = (int) need;
+	*state = need;
 	*save = saved;
 	
 	return (size_t) (outptr - out);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]