Module Name: othersrc
Committed By: agc
Date: Wed Feb 15 15:56:07 UTC 2012
Modified Files:
othersrc/external/bsd/httpdev/dist: main.c
Log Message:
callers of targetop() check for the number of characters returned, so return
the number of characters returned from targetop().
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 othersrc/external/bsd/httpdev/dist/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: othersrc/external/bsd/httpdev/dist/main.c
diff -u othersrc/external/bsd/httpdev/dist/main.c:1.1.1.1 othersrc/external/bsd/httpdev/dist/main.c:1.2
--- othersrc/external/bsd/httpdev/dist/main.c:1.1.1.1 Wed Feb 15 04:38:05 2012
+++ othersrc/external/bsd/httpdev/dist/main.c Wed Feb 15 15:56:07 2012
@@ -119,9 +119,9 @@ static int
targetop(const char *uri, uint64_t offset, uint32_t length, char *buf, int writing)
{
if (writing) {
- return http_post(buf, length, uri, offset, offset + length) == length;
+ return http_post(buf, length, uri, offset, offset + length);
} else {
- return http_get(buf, length, uri, offset, offset + length) == length;
+ return http_get(buf, length, uri, offset, offset + length);
}
}