| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes a warning about implicit declaration of malloc.
gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25"\" -g -O2 -Wall -MT routing.o -MD -MP -MF .deps/routing.Tpo -c -o routing.o routing.c
routing.c: In function ‘route_add’:
routing.c:83:13: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
83 | malloc(sizeof(struct route_table_entry));
| ^~~~~~
routing.c:17:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
16 | #include "ax25ipd.h"
+++ |+#include <stdlib.h>
17 |
routing.c:83:13: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
83 | malloc(sizeof(struct route_table_entry));
| ^~~~~~
routing.c:83:13: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
routing.c: In function ‘bcast_add’:
routing.c:130:13: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
130 | malloc(sizeof(struct bcast_table_entry));
| ^~~~~~
routing.c:130:13: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
|
|
|
|
| |
We were including way too many system header files, some even multiple
times and it wasn't immediately visible. Clean this.
This also drops the definitions of __USE_XOPEN which never had the desired
effect with glibc.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
|
|
|
|
| |
- Make static what can be made static.
- Add declaration where they were missing.
- Don't define variables in headers.
- Move declaations to the proper locations.
- Pick up declarations from the proper headers.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
| |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
| |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
| |
inet_ntoa() already returns char *.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
| |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
| |
|
| |
|
|
|
|
| |
Makefile bug
|
|
|