|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Making all in ax25rtd
make[2]: Entering directory '/home/ralf/src/ax25/ax25-apps/ax25rtd'
[...]
gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25"\" -g -O2 -Wall -MT cache_ctl.o -MD -MP -MF .deps/cache_ctl.Tpo -c -o cache_ctl.o cache_ctl.c
cache_ctl.c: In function ‘update_ip_route’:
cache_ctl.c:53:7: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
In file included from cache_ctl.c:21: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)
^
cache_ctl.c:53:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
cache_ctl.c:53:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:53:7: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
In file included from cache_ctl.c:21: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)
^
cache_ctl.c:53:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
cache_ctl.c:53:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:53:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
cache_ctl.c:53:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:53:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
cache_ctl.c:53:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:55:12: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(bp->iface, iface);
^
In file included from cache_ctl.c:21: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)
^
cache_ctl.c:109:9: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(bp->iface, iface);
^
In file included from cache_ctl.c:21: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)
^
cache_ctl.c: In function ‘update_ax25_route’:
cache_ctl.c:133:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
unsigned char *iface = config->dev;
^
cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
In file included from cache_ctl.c:21: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)
^
cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
In file included from cache_ctl.c:21: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)
^
cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:141:7: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
In file included from cache_ctl.c:21: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)
^
cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:141:7: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
In file included from cache_ctl.c:21: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)
^
cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:141:7: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:141:7: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:141:7: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(bp->iface, iface)) {
^
cache_ctl.c:141:7: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:142:27: warning: pointer targets in passing argument 1 of ‘del_kernel_ax25_route’ differ in signedness [-Wpointer-sign]
del_kernel_ax25_route(bp->iface,
^
In file included from cache_ctl.c:28:0:
ax25rtd.h:140:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
int del_kernel_ax25_route(char *dev, ax25_address *call);
^
cache_ctl.c:145:12: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(bp->iface, iface);
^
In file included from cache_ctl.c:21: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)
^
cache_ctl.c:145:23: warning: pointer targets in passing argument 2 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(bp->iface, iface);
^
In file included from cache_ctl.c:21:0:
/usr/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
cache_ctl.c:197:9: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(bp->iface, iface);
^
In file included from cache_ctl.c:21: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)
^
cache_ctl.c:197:20: warning: pointer targets in passing argument 2 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(bp->iface, iface);
^
In file included from cache_ctl.c:21:0:
/usr/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
cache_ctl.c: In function ‘remove_ip_route’:
cache_ctl.c:231:22: warning: pointer targets in passing argument 1 of ‘del_kernel_ip_route’ differ in signedness [-Wpointer-sign]
del_kernel_ip_route(bp->iface, bp->ip);
^
In file included from cache_ctl.c:28:0:
ax25rtd.h:139:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
int del_kernel_ip_route(char *dev, long ip);
^
cache_ctl.c: In function ‘remove_ax25_route’:
cache_ctl.c:255:24: warning: pointer targets in passing argument 1 of ‘del_kernel_ax25_route’ differ in signedness [-Wpointer-sign]
del_kernel_ax25_route(bp->iface, &bp->call);
^
In file included from cache_ctl.c:28:0:
ax25rtd.h:140:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
int del_kernel_ax25_route(char *dev, ax25_address *call);
^
cache_ctl.c: In function ‘del_ax25_route’:
cache_ctl.c:297:10: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
&& !strcmp(config->dev, bp->iface)) {
^
In file included from cache_ctl.c:21: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)
^
cache_ctl.c:297:10: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
&& !strcmp(config->dev, bp->iface)) {
^
cache_ctl.c:297:10: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:297:10: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
&& !strcmp(config->dev, bp->iface)) {
^
cache_ctl.c:297:10: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:297:10: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
&& !strcmp(config->dev, bp->iface)) {
^
In file included from cache_ctl.c:21: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)
^
cache_ctl.c:297:10: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
&& !strcmp(config->dev, bp->iface)) {
^
cache_ctl.c:297:10: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
cache_ctl.c:297:10: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
&& !strcmp(config->dev, bp->iface)) {
^
cache_ctl.c:297:10: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
[...]
gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25"\" -g -O2 -Wall -MT cache_dump.o -MD -MP -MF .deps/cache_dump.Tpo -c -o cache_dump.o cache_dump.c
cache_dump.c: In function ‘dump_ip_routes’:
cache_dump.c:48:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
dev = bp->iface;
^
cache_dump.c:51:28: warning: pointer targets in passing argument 1 of ‘dev_get_config’ differ in signedness [-Wpointer-sign]
config = dev_get_config(bp->iface);
^
In file included from cache_dump.c:33:0:
ax25rtd.h:147:10: note: expected ‘char *’ but argument is of type ‘unsigned char *’
config * dev_get_config(char *dev);
^
cache_dump.c:55:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
dev = bp->iface;
^
cache_dump.c: In function ‘dump_ax25_routes’:
cache_dump.c:92:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
dev = bp->iface;
^
cache_dump.c:95:28: warning: pointer targets in passing argument 1 of ‘dev_get_config’ differ in signedness [-Wpointer-sign]
config = dev_get_config(bp->iface);
^
In file included from cache_dump.c:33:0:
ax25rtd.h:147:10: note: expected ‘char *’ but argument is of type ‘unsigned char *’
config * dev_get_config(char *dev);
^
cache_dump.c:99:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
dev = bp->iface;
^
[...]
gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25"\" -g -O2 -Wall -MT config.o -MD -MP -MF .deps/config.Tpo -c -o config.o config.c
config.c: In function ‘interpret_command’:
config.c:554:22: warning: pointer targets in passing argument 1 of ‘prepare_cmdline’ differ in signedness [-Wpointer-sign]
p = prepare_cmdline(buf);
^
config.c:68:7: note: expected ‘char *’ but argument is of type ‘unsigned char *’
char *prepare_cmdline(char *buf)
^
config.c: In function ‘load_cache’:
config.c:687:25: warning: pointer targets in passing argument 2 of ‘interpret_command’ differ in signedness [-Wpointer-sign]
interpret_command(2, buf);
^
config.c:544:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
void interpret_command(int fd, unsigned char *buf)
^
config.c:695:25: warning: pointer targets in passing argument 2 of ‘interpret_command’ differ in signedness [-Wpointer-sign]
interpret_command(2, buf);
^
config.c:544:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
void interpret_command(int fd, unsigned char *buf)
^
[...]
gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25"\" -g -O2 -Wall -MT ax25rtctl.o -MD -MP -MF .deps/ax25rtctl.Tpo -c -o ax25rtctl.o ax25rtctl.c
ax25rtctl.c: In function ‘main’:
ax25rtctl.c:320:18: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign]
len = sprintf(buf, "add ax25");
^
In file included from ax25rtctl.c:20:0:
/usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern int sprintf (char *__restrict __s,
^
ax25rtctl.c:322:20: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign]
len += sprintf(buf + len, " %s", argv[k]);
^
In file included from ax25rtctl.c:20:0:
/usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern int sprintf (char *__restrict __s,
^
ax25rtctl.c:323:12: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign]
sprintf(buf + len, "\n");
^
In file included from ax25rtctl.c:20:0:
/usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern int sprintf (char *__restrict __s,
^
ax25rtctl.c:326:16: warning: pointer targets in passing argument 2 of ‘wsock’ differ in signedness [-Wpointer-sign]
wsock(sock, buf);
^
ax25rtctl.c:95:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’
static int wsock(int sock, char *s)
^
ax25rtctl.c:332:18: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign]
len = sprintf(buf, "add ip");
^
In file included from ax25rtctl.c:20:0:
/usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern int sprintf (char *__restrict __s,
^
ax25rtctl.c:334:20: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign]
len += sprintf(buf + len, " %s", argv[k]);
^
In file included from ax25rtctl.c:20:0:
/usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern int sprintf (char *__restrict __s,
^
ax25rtctl.c:335:12: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign]
sprintf(buf + len, "\n");
^
In file included from ax25rtctl.c:20:0:
/usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern int sprintf (char *__restrict __s,
^
ax25rtctl.c:338:16: warning: pointer targets in passing argument 2 of ‘wsock’ differ in signedness [-Wpointer-sign]
wsock(sock, buf);
^
ax25rtctl.c:95:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’
static int wsock(int sock, char *s)
^
ax25rtctl.c:348:12: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign]
sprintf(buf, "del ax25 %s %s\n", argv[optind],
^
In file included from ax25rtctl.c:20:0:
/usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern int sprintf (char *__restrict __s,
^
ax25rtctl.c:352:16: warning: pointer targets in passing argument 2 of ‘wsock’ differ in signedness [-Wpointer-sign]
wsock(sock, buf);
^
ax25rtctl.c:95:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’
static int wsock(int sock, char *s)
^
ax25rtctl.c:358:12: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign]
sprintf(buf, "del ip %s\n", argv[optind]);
^
In file included from ax25rtctl.c:20:0:
/usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern int sprintf (char *__restrict __s,
^
ax25rtctl.c:361:16: warning: pointer targets in passing argument 2 of ‘wsock’ differ in signedness [-Wpointer-sign]
wsock(sock, buf);
^
ax25rtctl.c:95:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’
static int wsock(int sock, char *s)
^
ax25rtctl.c:379:11: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign]
sprintf(buf, "expire %ld\n", when);
^
In file included from ax25rtctl.c:20:0:
/usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern int sprintf (char *__restrict __s,
^
ax25rtctl.c:380:15: warning: pointer targets in passing argument 2 of ‘wsock’ differ in signedness [-Wpointer-sign]
wsock(sock, buf);
^
ax25rtctl.c:95:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’
static int wsock(int sock, char *s)
^
[...]
make[2]: Leaving directory '/home/ralf/src/ax25/ax25-apps/ax25rtd'
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|