From: Daniel Stenberg Date: Sat, 12 Apr 2008 08:35:04 +0000 (+0000) Subject: return 0 not -1 at end of data! X-Git-Tag: curl-7_18_2~165 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79300cdcd988e65c37bd3d9b391cd7a73ebefc6b;p=thirdparty%2Fcurl.git return 0 not -1 at end of data! --- diff --git a/docs/examples/post-callback.c b/docs/examples/post-callback.c index 1a044808a0..e3f37c4aec 100644 --- a/docs/examples/post-callback.c +++ b/docs/examples/post-callback.c @@ -36,7 +36,7 @@ static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp) return 1; /* we return 1 byte at a time! */ } - return -1; /* no more data left to deliver */ + return 0; /* no more data left to deliver */ } int main(void)