diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-06-08 00:38:24 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-06-08 01:31:26 +0200 |
commit | 001a25a187939970830264fd9da30c087c7e9269 (patch) | |
tree | 40e0b39334f5efe484b87fe0191b51803117d43e /ax25ipd/process.c | |
parent | b17dea93bf9a89b652bf155445889f9736ed2798 (diff) |
ax25ipd/process.c: Fix signedness compiler warnings.
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 <ralf@linux-mips.org>
Diffstat (limited to 'ax25ipd/process.c')
-rw-r--r-- | ax25ipd/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ } |