diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-06-07 00:49:30 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-06-07 00:55:46 +0200 |
commit | 8d309033f67ef17584651f480290ad7ecb5a86d0 (patch) | |
tree | 16433547418f75686681c970e4889a8b7fc447dc /ax25/rxecho.c | |
parent | 72b2e2f6ff12913a0e7b567453ebdf8e3d2e1fc4 (diff) |
rose/rsdwnlnk.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 rsdwnlnk.o -MD -MP -MF .deps/rsdwnlnk.Tpo -c -o rsdwnlnk.o rsdwnlnk.c
rsdwnlnk.c: In function ‘main’:
rsdwnlnk.c:81:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
if ((addr = ax25_config_get_addr(argv[1])) == NULL) {
^
rsdwnlnk.c:87:22: warning: pointer targets in passing argument 1 of ‘ax25_aton_entry’ differ in signedness [-Wpointer-sign]
if (ax25_aton_entry(addr, axbind.fsa_digipeater[0].ax25_call) == -1) {
^
In file included from rsdwnlnk.c:17:0:
/usr/include/netax25/axlib.h:58:12: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
extern int ax25_aton_entry(const char *, char *);
^
rsdwnlnk.c:109:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
addr = rose_ntoa(&rosepeer.srose_addr);
^
rsdwnlnk.c:111:23: warning: pointer targets in passing argument 1 of ‘ax25_aton_entry’ differ in signedness [-Wpointer-sign]
if (ax25_aton_entry(addr, axconnect.fsa_digipeater[n].ax25_call) == -1) {
^
In file included from rsdwnlnk.c:17:0:
/usr/include/netax25/axlib.h:58:12: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
extern int ax25_aton_entry(const char *, char *);
^
rsdwnlnk.c:123:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
addr = rose_ntoa(&rosepeer.srose_addr);
^
rsdwnlnk.c:124:22: warning: pointer targets in passing argument 1 of ‘ax25_aton_entry’ differ in signedness [-Wpointer-sign]
if (ax25_aton_entry(addr + 4, axconnect.fsa_digipeater[n].ax25_call) == -1) {
^
In file included from rsdwnlnk.c:17:0:
/usr/include/netax25/axlib.h:58:12: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
extern int ax25_aton_entry(const char *, char *);
^
rsdwnlnk.c:202:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(buffer, "*** Connection refused\r");
^
In file included from rsdwnlnk.c:2:0:
/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)
^
rsdwnlnk.c:205:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(buffer, "*** No known route\r");
^
In file included from rsdwnlnk.c:2:0:
/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)
^
rsdwnlnk.c:208:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(buffer, "*** Connection timed out\r");
^
In file included from rsdwnlnk.c:2:0:
/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)
^
rsdwnlnk.c:211:12: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign]
sprintf(buffer, "ERROR: cannot connect to AX.25 callsign, %s\r", strerror(errno));
^
In file included from rsdwnlnk.c:1:0:
/usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern int sprintf (char *__restrict __s,
^
rsdwnlnk.c:217:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
write(STDOUT_FILENO, buffer, strlen(buffer));
^
In file included from rsdwnlnk.c:2:0:
/usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
extern size_t strlen (const char *__s)
^
rsdwnlnk.c:229:9: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(buffer, "*** Connected\r");
^
In file included from rsdwnlnk.c:2:0:
/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)
^
rsdwnlnk.c:230:37: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
write(STDOUT_FILENO, buffer, strlen(buffer));
^
In file included from rsdwnlnk.c:2:0:
/usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
extern size_t strlen (const char *__s)
^
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25/rxecho.c')
0 files changed, 0 insertions, 0 deletions