projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0edd22d
)
Cast integer to long for print
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 13 Jan 2009 14:54:56 +0000
(15:54 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 13 Jan 2009 14:54:56 +0000
(15:54 +0100)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
8016a15
..
b6d8281
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-205,7
+205,7
@@
static void do_hex_dump(const char* buf, size_t len)
int x;
for (i = 0; i < len ; i = i+16 )
{
- printf(" %4.4d ",i);
+ printf(" %4.4ld ", (long) i);
for(x=0 ; i+x<len && x<16; ++x)
{
printf("%2.2X ",(unsigned int)((unsigned char)buf[i+x]));