cpukit/libmisc/dumpbuf/dumpbuf.c: Fix compilation warnings

Compiling dumpbuf.c causes the following warning to be issued:

warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]

This happens because line_buffer is declared as unsigned.

Closes #2411.
This commit is contained in:
Martin Galvan
2015-09-03 15:55:52 -05:00
committed by Joel Sherrill
parent efb798e16e
commit ccebc571d4

View File

@@ -80,7 +80,7 @@ void rtems_print_buffer(const unsigned char *buffer, const int length)
static void Dump_Line(const unsigned char *buffer, const unsigned int length)
{
unsigned int i;
static unsigned char line_buffer[ROW_LENGTH] = "";
static char line_buffer[ROW_LENGTH] = "";
size_t tmp_len;
/* Output the hex value of each byte. */