summaryrefslogtreecommitdiff
path: root/lib/libcurses/trace
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-03-11 21:03:59 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-03-11 21:03:59 +0000
commit73a856115702157d58128365662b9519d7daeadc (patch)
tree6ff9a5f980b684e623391e394e48c512c960ced4 /lib/libcurses/trace
parent62849813a43735aeaa89e531a24138e11c68b595 (diff)
ncurses-4.2-990307
Diffstat (limited to 'lib/libcurses/trace')
-rw-r--r--lib/libcurses/trace/trace_tries.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libcurses/trace/trace_tries.c b/lib/libcurses/trace/trace_tries.c
index 2951c3ba0d3..effb7378d6c 100644
--- a/lib/libcurses/trace/trace_tries.c
+++ b/lib/libcurses/trace/trace_tries.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trace_tries.c,v 1.2 1999/03/02 06:23:30 millert Exp $ */
+/* $OpenBSD: trace_tries.c,v 1.3 1999/03/11 21:03:58 millert Exp $ */
/****************************************************************************
* Copyright (c) 1999 Free Software Foundation, Inc. *
@@ -37,23 +37,23 @@
#include <curses.priv.h>
-MODULE_ID("$From: trace_tries.c,v 1.5 1999/02/28 23:42:28 tom Exp $")
+MODULE_ID("$From: trace_tries.c,v 1.6 1999/03/06 22:51:07 tom Exp $")
#ifdef TRACE
-static char *buffer;
+static unsigned char *buffer;
static unsigned len;
static void recur_tries(struct tries *tree, unsigned level)
{
if (level > len)
- buffer = (char *)realloc(buffer, len = (level + 1) * 4);
+ buffer = (unsigned char *)realloc(buffer, len = (level + 1) * 4);
while (tree != 0) {
if ((buffer[level] = tree->ch) == 0)
buffer[level] = 128;
buffer[level+1] = 0;
if (tree->value != 0) {
- _tracef("%5d: %s (%s)", tree->value, _nc_visbuf(buffer), keyname(tree->value));
+ _tracef("%5d: %s (%s)", tree->value, _nc_visbuf((char *)buffer), keyname(tree->value));
}
if (tree->child)
recur_tries(tree->child, level+1);
@@ -63,7 +63,7 @@ static void recur_tries(struct tries *tree, unsigned level)
void _nc_trace_tries(struct tries *tree)
{
- buffer = typeMalloc(char, len = 80);
+ buffer = typeMalloc(unsigned char, len = 80);
_tracef("BEGIN tries %p", tree);
recur_tries(tree, 0);
_tracef(". . . tries %p", tree);