]> git.infradead.org Git - users/dwmw2/openconnect.git/commit
Fix implicit declaration of function 'malloc'
authorBrahmajit Das <brahmajit.xyz@gmail.com>
Mon, 29 Jan 2024 17:58:53 +0000 (23:28 +0530)
committerBrahmajit Das <brahmajit.xyz@gmail.com>
Mon, 29 Jan 2024 18:02:54 +0000 (23:32 +0530)
commit5185f640045df2b4f8ee7f028fc59e6f02fdf367
tree2c5acbbc2a4915eaf03b0428452ae871663dc29e
parent924223610dd54905e48029d0beba093356a6d418
Fix implicit declaration of function 'malloc'

First observed on Gentoo Linux with GCC 14. This is due to GCC 14
enabling -Werror=implicit-function-declaration by default.
Thus resulting in errors such as:

openconnect-internal.h: In function 'alloc_pkt':
openconnect-internal.h:911:27: error: implicit declaration of function 'malloc' [-Werror=implicit-function-declaration]
  911 |         struct pkt *pkt = malloc(alloc_len);
      |                           ^~~~~~

Plese refer gentoo bug: https://bugs.gentoo.org/923173
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
openconnect-internal.h