summaryrefslogtreecommitdiff
path: root/paxtest/paxtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'paxtest/paxtest.c')
-rw-r--r--paxtest/paxtest.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/paxtest/paxtest.c b/paxtest/paxtest.c
index bf839ac..5ba7ce9 100644
--- a/paxtest/paxtest.c
+++ b/paxtest/paxtest.c
@@ -43,13 +43,16 @@ fatal_exit (void)
}
void
-dump (unsigned char *buf, size_t size)
+dump (char *buf, size_t size)
{
while (size)
{
int i;
for (i = 0; i < 16 && size; i++, size--, buf++)
- printf ("%02X ", *buf);
+ {
+ unsigned char ch = *buf;
+ printf ("%02X ", ch);
+ }
printf ("\n");
}
}