New commits:
commit 19eb4a08e400e05167aed2201222be4b1c18fd3a
Author: Daiki Ueno <[email protected]>
Date: Thu Apr 25 14:13:01 2024 +0900
libipsecconf: Use custom memory allocation functions
The parser previously directly used bare calloc and free for
filenames. This switches to using alloc_things and pfree for better
tracking of memory allocation.
This also fixes the following compiler warning when building on Fedora
rawhide (Fedora 41):
parser.lex: In function ‘glob_include’:
parser.lex:198:44: error: ‘calloc’ sizes specified with ‘sizeof’ in the
earlier argument and not in the later argument [-Werror=calloc-transposed-args]
198 | stacktop->fileglob = calloc(sizeof(char *), count + 1);
| ^~~~
parser.lex:198:44: note: earlier argument should specify number of
elements, later size of each element
cc1: all warnings being treated as errors
Signed-off-by: Daiki Ueno <[email protected]>
Signed-off-by: Andrew Cagney <[email protected]>
_______________________________________________
Swan-commit mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-commit