diff options
author | James Bursa <james@zamez.org> | 2010-09-14 22:52:04 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-09-14 22:52:04 +0200 |
commit | fbefd816e493a2c690e342bd3e91ce6e5300f31e (patch) | |
tree | a6a42eb08b701689c5e2b5d4a9a6724605c48bef /lib/pingpong.h | |
parent | 296b246b9cd1da5d13c56254e1c68914f8756a2e (diff) |
getinmemory: make the example easier to follow
1. Remove the comment warning that it's "not been verified to work". It
works with no problems in my testing.
2. Remove 2 unnecessary includes.
3. Remove the myrealloc(). Initialize chunk.memory with malloc() instead
of NULL. The comments for these two parts contradicted each other.
4. Handle out of memory from realloc() instead of continuing.
5. Print a brief status message at the end.
Diffstat (limited to 'lib/pingpong.h')
0 files changed, 0 insertions, 0 deletions