[gmime] fixed compile warnings in test-mbox.c
- From: Jeffrey Stedfast <fejj src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gmime] fixed compile warnings in test-mbox.c
- Date: Sun, 31 Jan 2010 16:39:47 +0000 (UTC)
commit aaf259619a5bfb13b540b820c2a125a58f98cce4
Author: Jeffrey Stedfast <fejj gnome org>
Date: Sun Jan 31 11:40:53 2010 -0500
fixed compile warnings in test-mbox.c
tests/test-mbox.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/test-mbox.c b/tests/test-mbox.c
index fef8e39..6a79e7a 100644
--- a/tests/test-mbox.c
+++ b/tests/test-mbox.c
@@ -140,7 +140,7 @@ static gboolean
streams_match (GMimeStream *istream, GMimeStream *ostream)
{
char buf[4096], dbuf[4096], errstr[1024], *bufptr, *bufend, *dbufptr;
- size_t totalsize, totalread = 0;
+ gint64 len, totalsize, totalread = 0;
size_t nread, size;
gint64 offset = 0;
ssize_t n;
@@ -149,14 +149,14 @@ streams_match (GMimeStream *istream, GMimeStream *ostream)
if (istream->bound_end != -1) {
totalsize = istream->bound_end - istream->position;
- } else if ((n = g_mime_stream_length (istream)) == -1) {
+ } else if ((len = g_mime_stream_length (istream)) == -1) {
sprintf (errstr, "Error: Unable to get length of original stream\n");
goto fail;
- } else if (n < (istream->position - istream->bound_start)) {
+ } else if (len < (istream->position - istream->bound_start)) {
sprintf (errstr, "Error: Overflow on original stream?\n");
goto fail;
} else {
- totalsize = n - (istream->position - istream->bound_start);
+ totalsize = len - (istream->position - istream->bound_start);
}
while (totalread < totalsize) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]