diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2021-07-28 13:04:51 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2021-07-28 13:04:51 +0200 |
commit | 85865ee34963aa2fae1d0503feb9858f63ef0af7 (patch) | |
tree | 5d5303aa3d78af8e952307491e816ff05b9e759f /AUTHORS | |
parent | 27de2c769e20b0d056131442c5a2873a73f42bdc (diff) |
ax25ipd: Include <stdlib.h> for malloc.
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>
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions