summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-30 17:33:35 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-02-06 23:43:46 +0100
commite1e7c6343612f23b978bc29148570137dba01563 (patch)
treebf3f90aaab9a4d19de8691a6e3163cac75ac67ce
parent78fd04d0666d0095b3a22986e0504e9d58663ee0 (diff)
netromd: Add cast to fix warning.
gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/va r/ax25/"\" -O2 -Wall -pedantic -MT netromt.o -MD -MP -MF .deps/netromt.Tpo -c -o netromt.o netromt.c In file included from netromt.c:24:0: netromt.c: In function ‘build_header’: netromd.h:10:19: warning: overflow in implicit constant conversion [-Woverflow] #define NODES_SIG 0xFF ^ netromt.c:28:15: note: in expansion of macro ‘NODES_SIG’ message[0] = NODES_SIG; ^~~~~~~~~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--netrom/netromt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netrom/netromt.c b/netrom/netromt.c
index 54f2271..bd51682 100644
--- a/netrom/netromt.c
+++ b/netrom/netromt.c
@@ -25,7 +25,7 @@
static int build_header(char *message)
{
- message[0] = NODES_SIG;
+ message[0] = (char) NODES_SIG;
strcpy(message + 1, nr_config_get_alias(NULL));
strncat(message + 1, " ", MNEMONIC_LEN - strlen(message + 1));