summaryrefslogtreecommitdiff
path: root/printhex.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-19 11:29:03 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-19 11:29:07 -0800
commit24d38c420d5d60c988f07dd25f7fa81171dac64f (patch)
tree47d34022ccbff9515e85ed47cf34794c19454df2 /printhex.c
parente17c2f59266528dce1cfb71798dc6075b74839a3 (diff)
Fix some gcc -Wwrite-strings warnings
Many are unfixable at the moment due to the libXt API Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'printhex.c')
-rw-r--r--printhex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/printhex.c b/printhex.c
index f14ab8b..2b3a79a 100644
--- a/printhex.c
+++ b/printhex.c
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
#include "xsm.h"
-static char *hex_table[] = { /* for printing hex digits */
+static const char *hex_table[] = { /* for printing hex digits */
"00", "01", "02", "03", "04", "05", "06", "07",
"08", "09", "0a", "0b", "0c", "0d", "0e", "0f",
"10", "11", "12", "13", "14", "15", "16", "17",
@@ -69,7 +69,7 @@ fprintfhex(register FILE *fp, unsigned int len, char *cp)
for (; len > 0; len--, ucp++)
{
- register char *s = hex_table[*ucp];
+ register const char *s = hex_table[*ucp];
putc (s[0], fp);
putc (s[1], fp);
}