From 001a25a187939970830264fd9da30c087c7e9269 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 8 Jun 2015 00:38:24 +0200 Subject: ax25ipd/process.c: Fix signedness compiler warnings. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25"\" -DUSE_TERMIO -g -O2 - Wall -MT process.o -MD -MP -MF .deps/process.Tpo -c -o process.o process.c process.c: In function ‘do_beacon’: process.c:235:10: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(p, bc_text); /* add the text field */ ^ In file included from /usr/include/memory.h:29:0, from ax25ipd.h:52, from process.c:15: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ Signed-off-by: Ralf Baechle --- ax25ipd/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ax25ipd') diff --git a/ax25ipd/process.c b/ax25ipd/process.c index 07bd570..97faabb 100644 --- a/ax25ipd/process.c +++ b/ax25ipd/process.c @@ -232,7 +232,7 @@ void do_beacon(void) *p++ = 0xf0; /* Protocol ID -- 0xf0 is no protocol */ - strcpy(p, bc_text); /* add the text field */ + strcpy((char *)p, bc_text); /* add the text field */ bclen = 16 + strlen(bc_text); /* adjust the length nicely */ } -- cgit v1.2.3