From e1e7c6343612f23b978bc29148570137dba01563 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 30 Jan 2017 17:33:35 +0100 Subject: netromd: Add cast to fix warning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- netrom/netromt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netrom') 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)); -- cgit v1.2.3