summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Galvan <martin.galvan@tallertechnologies.com>2015-09-03 15:55:52 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-09-03 16:09:22 -0500
commitccebc571d447537208d2a861aa2ff0cf339839a7 (patch)
treef98479390af3b46709e0ccadb2ec19a99d008d67
parentcpukit/libnetworking/rtems/rtems_dhcp.c: Fix compilation error (diff)
downloadrtems-ccebc571d447537208d2a861aa2ff0cf339839a7.tar.bz2
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.
-rw-r--r--cpukit/libmisc/dumpbuf/dumpbuf.c2
1 files changed, 1 insertions, 1 deletions
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. */