diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-04-12 08:35:04 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-04-12 08:35:04 +0000 |
commit | 79300cdcd988e65c37bd3d9b391cd7a73ebefc6b (patch) | |
tree | f49a495470303cf9cb8f698d56ca658d8cfb8646 /docs/examples | |
parent | a9591ad1b78008f07a6c7fea202922a39bda501e (diff) |
return 0 not -1 at end of data!
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/post-callback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/post-callback.c b/docs/examples/post-callback.c index 1a044808a..e3f37c4ae 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) |