summaryrefslogtreecommitdiffstats
path: root/hdlcutil
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-06-07 00:43:12 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-07 00:43:12 +0200
commit37a794b96394e50151ed89e8992c2bfc9a049781 (patch)
tree140cf8da4f6e16fc3e61ab3b77eee195220b6a97 /hdlcutil
parentf2736ed86e0b8372468be53d419e387056231e6b (diff)
hdlcutil/sethdlc.c: 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 sethdlc.o -MD -MP -MF .deps/sethdlc.Tpo -c -o sethdlc.o sethdlc.c sethdlc.c: In function ‘main’: sethdlc.c:539:34: warning: pointer targets in passing argument 1 of ‘hdrvc_recvpacket’ differ in signedness [-Wpointer-sign] while ((ret = hdrvc_recvpacket(pktbuf, sizeof(pktbuf))) > 1) ^ In file included from sethdlc.c:46:0: hdrvcomm.h:88:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’ extern int hdrvc_recvpacket(char *pkt, int maxlen); ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'hdlcutil')
-rw-r--r--hdlcutil/sethdlc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hdlcutil/sethdlc.c b/hdlcutil/sethdlc.c
index 657eed6..9675d4e 100644
--- a/hdlcutil/sethdlc.c
+++ b/hdlcutil/sethdlc.c
@@ -52,7 +52,7 @@ static char *progname;
/* ---------------------------------------------------------------------- */
-static void display_packet(unsigned char *bp, unsigned int len)
+static void display_packet(char *bp, unsigned int len)
{
unsigned char v1=1,cmd=0;
unsigned char i,j;
@@ -481,7 +481,7 @@ int main(int argc, char *argv[])
struct sm_ioctl bsi;
struct baycom_ioctl bbi;
struct hdrvc_channel_state chst;
- unsigned char pktbuf[2048];
+ char pktbuf[2048];
progname = *argv;
printf("%s: Version 0.5; (C) 1996-1997 by Thomas Sailer HB9JNX/AE4WA\n", *argv);