K 10 svn:author V 7 git2svn K 8 svn:date V 27 2022-07-29T18:50:15.258988Z K 7 svn:log V 886 Adjust function definitions in kern_resource.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/kern/kern_resource.c:1212:10: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] lim_alloc() ^ void sys/kern/kern_resource.c:1365:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] uihashinit() ^ void This is because lim_alloc() and uihashinit() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days (cherry picked from commit f2eb09b089bcdf546ed3fd4c2c59d9df02c585d8) Git Hash: 4f52b2ba472ed357b9a49a7d5ae382c5d1a0c781 Git Author: dim@FreeBSD.org END