forked from Imagelibrary/rtems
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:
committed by
Joel Sherrill
parent
efb798e16e
commit
ccebc571d4
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user