summaryrefslogtreecommitdiffstats
path: root/ax25
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-06-07 00:38:00 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-07 00:40:35 +0200
commitafd661641953ca080e51d2a0dcbf02da052f7ffa (patch)
treef2a97b6e043966e246dbed29f740d3abaef614b6 /ax25
parent49009539791c7a888d93d062ee41e5ce7d65e8fe (diff)
ax25/axwrapper.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 axwrapper.o -MD -MP -MF .deps/axwrapper.Tpo -c -o axwrapper.o axwrapper.c axwrapper.c: In function ‘main’: axwrapper.c:105:17: warning: pointer targets in passing argument 2 of ‘setvbuf’ differ in signedness [-Wpointer-sign] setvbuf(stdout, stdoutbuf, _IOFBF, paclen); ^ In file included from axwrapper.c:36:0: /usr/include/stdio.h:336:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25')
-rw-r--r--ax25/axwrapper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ax25/axwrapper.c b/ax25/axwrapper.c
index 15989b0..641730d 100644
--- a/ax25/axwrapper.c
+++ b/ax25/axwrapper.c
@@ -70,7 +70,8 @@ void convert_lf_cr(unsigned char *buf, int len)
int main(int argc, char **argv)
{
- unsigned char buf[4096], *stdoutbuf;
+ unsigned char buf[4096];
+ char *stdoutbuf;
int pipe_in[2];
int pipe_out[2];
int pipe_err[2];