summaryrefslogtreecommitdiffstats
path: root/ax25ipd/routing.c
Commit message (Collapse)AuthorAgeFilesLines
* ax25ipd: Include <stdlib.h> for malloc.Ralf Baechle2021-07-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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>
* ax25ipd: Cleanup header file inclusion.Ralf Baechle2017-07-261-4/+13
| | | | | | | | | | 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>
* Sort out variable and function declarations.Ralf Baechle2017-01-311-3/+3
| | | | | | | | | | - 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>
* Remove pointless return statements at the end of void functions.Ralf Baechle2015-05-021-2/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove parenthesis around arguments of return statements.Ralf Baechle2015-05-021-3/+3
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25ipd: Remove useless casts of inet_ntoa() return values to char *.Ralf Baechle2013-06-161-4/+4
| | | | | | inet_ntoa() already returns char *. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25ipd: Fix metric butload of type aliasing bugs.Ralf Baechle2013-06-161-7/+8
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Convert K&R-style function definitions to function prototypes.Ralf Baechle2009-06-141-16/+8
|
* merged my changes with terry indent, daemon can now optionally not forkCraig Small2001-11-271-1/+2
|
* updated libtool, uniformly indented source, corrected small ax25mond ↵Terry Dawson VK2KTJ2001-09-121-84/+80
| | | | Makefile bug
* Import ax25-apps 0.0.1 from tarballax25-apps-0.0.1Ralf Baechle1999-06-071-0/+264