summaryrefslogtreecommitdiff
path: root/docs/examples/debug.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-12-17 23:34:26 +0100
committerDaniel Stenberg <daniel@haxx.se>2010-12-17 23:34:26 +0100
commit9583b4af9057c9e35ec3dd3270d4c4813b5f7aaa (patch)
treee50544f244a6243aec3d72a559375c17b83f25bb /docs/examples/debug.c
parent8219bc9e19c78ec4617ae5311b4ea64c49763ff6 (diff)
downloadgnurl-9583b4af9057c9e35ec3dd3270d4c4813b5f7aaa.tar.gz
gnurl-9583b4af9057c9e35ec3dd3270d4c4813b5f7aaa.tar.bz2
gnurl-9583b4af9057c9e35ec3dd3270d4c4813b5f7aaa.zip
examples: fix compiler warnings
Diffstat (limited to 'docs/examples/debug.c')
-rw-r--r--docs/examples/debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/debug.c b/docs/examples/debug.c
index cc6848178..1e04acb51 100644
--- a/docs/examples/debug.c
+++ b/docs/examples/debug.c
@@ -28,12 +28,12 @@ void dump(const char *text,
/* without the hex output, we can fit more on screen */
width = 0x40;
- fprintf(stream, "%s, %010.10ld bytes (0x%08.8lx)\n",
+ fprintf(stream, "%s, %10.10ld bytes (0x%8.8lx)\n",
text, (long)size, (long)size);
for(i=0; i<size; i+= width) {
- fprintf(stream, "%04.4lx: ", (long)i);
+ fprintf(stream, "%4.4lx: ", (long)i);
if(!nohex) {
/* hex not disabled, show it */