From 90c54bbf3d46d723e6898d2ac26244146d0e1d42 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sun, 7 Jun 2015 00:44:15 +0200 Subject: hdlcutil/usersmdiag.h: 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/"\" -g -O2 -Wall -MT hdrvcomm.o -MD -MP -MF .deps/hdrvcomm.Tpo -c -o hdrvcomm.o hdrvcomm.c hdrvcomm.c: In function ‘hdrvc_get_driver_name’: hdrvcomm.c:677:1: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign] strncpy(buf, msg.data.by, ret); ^ hdrvcomm.c:677:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ hdrvcomm.c: In function ‘hdrvc_get_mode_name’: hdrvcomm.c:712:1: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign] strncpy(buf, msg.data.by, ret); ^ hdrvcomm.c:712:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ Signed-off-by: Ralf Baechle --- hdlcutil/usersmdiag.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hdlcutil') diff --git a/hdlcutil/usersmdiag.h b/hdlcutil/usersmdiag.h index e40f889..54e818b 100644 --- a/hdlcutil/usersmdiag.h +++ b/hdlcutil/usersmdiag.h @@ -110,7 +110,7 @@ struct usersmmsg { short samples[DIAGDATALEN]; } diag_out; - unsigned char by[0]; + char by[0]; } data; }; -- cgit v1.2.3