projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9591ad
)
return 0 not -1 at end of data!
author
Daniel Stenberg
<daniel@haxx.se>
Sat, 12 Apr 2008 08:35:04 +0000
(08:35 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Sat, 12 Apr 2008 08:35:04 +0000
(08:35 +0000)
docs/examples/post-callback.c
patch
|
blob
|
history
diff --git
a/docs/examples/post-callback.c
b/docs/examples/post-callback.c
index
1a04480
..
e3f37c4
100644
(file)
--- 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)