diff options
author | Martin Galvan <martin.galvan@tallertechnologies.com> | 2015-09-03 15:55:52 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-09-03 16:09:02 -0500 |
commit | 41b5c915e3b494a30bf73f82b03a77bc04388b29 (patch) | |
tree | 928e6af245b592c2706d3ee75d29fa03768241c5 /cpukit/libmisc/dumpbuf/dumpbuf.c | |
parent | cpukit/libnetworking/rtems/rtems_dhcp.c: Fix compilation error (diff) | |
download | rtems-41b5c915e3b494a30bf73f82b03a77bc04388b29.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.
Diffstat (limited to 'cpukit/libmisc/dumpbuf/dumpbuf.c')
-rw-r--r-- | cpukit/libmisc/dumpbuf/dumpbuf.c | 2 |
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. */ |