summaryrefslogtreecommitdiffstats
path: root/hdlcutil
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-06-07 00:44:15 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-07 00:44:15 +0200
commit90c54bbf3d46d723e6898d2ac26244146d0e1d42 (patch)
treee35f32dafa3864bb4d2f9f15e9ab2780a6a5a81e /hdlcutil
parent37a794b96394e50151ed89e8992c2bfc9a049781 (diff)
hdlcutil/usersmdiag.h: Fix signedness compiler warnings.
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 <ralf@linux-mips.org>
Diffstat (limited to 'hdlcutil')
-rw-r--r--hdlcutil/usersmdiag.h2
1 files changed, 1 insertions, 1 deletions
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;
};