diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-06-07 00:50:26 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-06-07 00:55:46 +0200 |
commit | c8ea06de1c3846b17956e920ee024ed4e6002110 (patch) | |
tree | 00e61203e8334105428d73af2bda94066bc97975 /yamdrv/.gitignore | |
parent | 8d309033f67ef17584651f480290ad7ecb5a86d0 (diff) |
rose/rsuplnk.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 rsuplnk.o -MD -MP -MF .deps/rsuplnk.Tpo -c -o rsuplnk.o rsuplnk.c
rsuplnk.c: In function ‘main’:
rsuplnk.c:85:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
if ((addr = rs_config_get_addr(argv[1])) == NULL) {
^
rsuplnk.c:91:16: warning: pointer targets in passing argument 1 of ‘rose_aton’ differ in signedness [-Wpointer-sign]
if (rose_aton(addr, rosebind.srose_addr.rose_addr) == -1) {
^
In file included from rsuplnk.c:17:0:
/usr/include/netax25/axlib.h:84:12: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
extern int rose_aton(const char *, char *);
^
rsuplnk.c:104:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
addr = ax25_ntoa(&ax25peer.fsa_digipeater[n]);
^
rsuplnk.c:106:6: warning: pointer targets in passing argument 1 of ‘__builtin_strspn’ differ in signedness [-Wpointer-sign]
if (strspn(addr, "0123456789-") == strlen(addr)) {
^
rsuplnk.c:106:6: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
rsuplnk.c:106:6: warning: pointer targets in passing argument 1 of ‘__strspn_c1’ differ in signedness [-Wpointer-sign]
if (strspn(addr, "0123456789-") == strlen(addr)) {
^
In file included from /usr/include/string.h:634:0,
from rsuplnk.c:2:
/usr/include/bits/string2.h:1023:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
__strspn_c1 (const char *__s, int __accept)
^
rsuplnk.c:106:6: warning: pointer targets in passing argument 1 of ‘__strspn_c2’ differ in signedness [-Wpointer-sign]
if (strspn(addr, "0123456789-") == strlen(addr)) {
^
In file included from /usr/include/string.h:634:0,
from rsuplnk.c:2:
/usr/include/bits/string2.h:1035:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
__strspn_c2 (const char *__s, int __accept1, int __accept2)
^
rsuplnk.c:106:6: warning: pointer targets in passing argument 1 of ‘__strspn_c3’ differ in signedness [-Wpointer-sign]
if (strspn(addr, "0123456789-") == strlen(addr)) {
^
In file included from /usr/include/string.h:634:0,
from rsuplnk.c:2:
/usr/include/bits/string2.h:1047:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
__strspn_c3 (const char *__s, int __accept1, int __accept2, int __accept3)
^
rsuplnk.c:106:6: warning: pointer targets in passing argument 1 of ‘__builtin_strspn’ differ in signedness [-Wpointer-sign]
if (strspn(addr, "0123456789-") == strlen(addr)) {
^
rsuplnk.c:106:6: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
rsuplnk.c:106:6: warning: pointer targets in passing argument 1 of ‘__builtin_strspn’ differ in signedness [-Wpointer-sign]
if (strspn(addr, "0123456789-") == strlen(addr)) {
^
rsuplnk.c:106:6: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
rsuplnk.c:106:44: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
if (strspn(addr, "0123456789-") == strlen(addr)) {
^
In file included from rsuplnk.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)
^
rsuplnk.c:107:12: warning: pointer targets in passing argument 1 of ‘__builtin_strchr’ differ in signedness [-Wpointer-sign]
if ((p = strchr(addr, '-')) != NULL)
^
rsuplnk.c:107:12: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
rsuplnk.c:107:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
if ((p = strchr(addr, '-')) != NULL)
^
rsuplnk.c:109:19: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
switch (strlen(addr)) {
^
In file included from rsuplnk.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)
^
rsuplnk.c:128:10: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(buffer, "*** No ROSE address given\r");
^
In file included from rsuplnk.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)
^
rsuplnk.c:129: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 rsuplnk.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)
^
rsuplnk.c:195:10: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(buffer, "*** Connection in progress\r");
^
In file included from rsuplnk.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)
^
rsuplnk.c:196: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 rsuplnk.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)
^
rsuplnk.c:212:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(buffer, "*** Disconnected - 0100 - Number Busy\r");
^
In file included from rsuplnk.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)
^
rsuplnk.c:215:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(buffer, "*** Disconnected - 0D00 - Not Obtainable\r");
^
In file included from rsuplnk.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)
^
rsuplnk.c:218:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(buffer, "*** Disconnected - 3900 - Ship Absent\r");
^
In file included from rsuplnk.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)
^
rsuplnk.c:221:12: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign]
sprintf(buffer, "*** Disconnected - %d - %s\r", errno, strerror(errno));
^
In file included from rsuplnk.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,
^
rsuplnk.c:228:39: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
write(STDOUT_FILENO, buffer, strlen(buffer));
^
In file included from rsuplnk.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)
^
rsuplnk.c:241:10: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(buffer, "*** Connected\r");
^
In file included from rsuplnk.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)
^
rsuplnk.c:242: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 rsuplnk.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)
^
rsuplnk.c:257:12: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(buffer, "\r*** Disconnected - 0000 - DTE Originated\r");
^
In file included from rsuplnk.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)
^
rsuplnk.c:258:40: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
write(STDOUT_FILENO, buffer, strlen(buffer));
^
In file included from rsuplnk.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 'yamdrv/.gitignore')
0 files changed, 0 insertions, 0 deletions