diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-01-30 17:31:21 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-02-06 23:43:46 +0100 |
commit | 78fd04d0666d0095b3a22986e0504e9d58663ee0 (patch) | |
tree | 9b48866d20aadf0e94336af9d121c59e7bd88ad0 | |
parent | 7b65795b6e65c98dac38744d81a1a3a445bcf494 (diff) |
mkiss: Change type of buffer[] to fix warning.
gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -O2 -Wall -pedantic -MT mkiss.o -MD -MP -MF .deps/mkiss.Tpo -c -o mkiss.o mkiss.c
mkiss.c: In function ‘poll’:
mkiss.c:67:15: warning: overflow in implicit constant conversion [-Woverflow]
#define FEND 0300 /* Frame End (0xC0) */
^
mkiss.c:148:14: note: in expansion of macro ‘FEND’
buffer[0] = FEND;
^~~~
mkiss.c:67:15: warning: overflow in implicit constant conversion [-Woverflow]
#define FEND 0300 /* Frame End (0xC0) */
^
mkiss.c:150:14: note: in expansion of macro ‘FEND’
buffer[2] = FEND;
^~~~
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | kiss/mkiss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kiss/mkiss.c b/kiss/mkiss.c index bfdbdf5..35e7ed0 100644 --- a/kiss/mkiss.c +++ b/kiss/mkiss.c @@ -142,7 +142,7 @@ static void init_crc(void) static int poll(int fd, int ports) { - char buffer[3]; + unsigned char buffer[3]; static int port; buffer[0] = FEND; |