From ccebc571d447537208d2a861aa2ff0cf339839a7 Mon Sep 17 00:00:00 2001 From: Martin Galvan Date: Thu, 3 Sep 2015 15:55:52 -0500 Subject: 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. --- cpukit/libmisc/dumpbuf/dumpbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libmisc/dumpbuf/dumpbuf.c b/cpukit/libmisc/dumpbuf/dumpbuf.c index bb63997a84..2f2cd10895 100644 --- a/cpukit/libmisc/dumpbuf/dumpbuf.c +++ b/cpukit/libmisc/dumpbuf/dumpbuf.c @@ -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. */ -- cgit v1.2.3