Do the same as commit 0744f748ed90 ("generator: indent C argument list 2 spaces relative to function designator", 2023-04-21), except this time not for the header files, but for "lib/api.c". The most impactful resultant change is [lib/api.c]:
@@ -5378,9 +5577,11 @@ aio_opt_list_meta_context_queries_in_per }
int -nbd_aio_opt_list_meta_context_queries (struct nbd_handle *h, char **queries, - nbd_context_callback context_callback, - nbd_completion_callback completion_callback) +nbd_aio_opt_list_meta_context_queries ( + struct nbd_handle *h, char **queries, + nbd_context_callback context_callback, + nbd_completion_callback completion_callback +) { bool p; int ret;
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516 Signed-off-by: Laszlo Ersek <lersek@redhat.com> --- Notes: v2: - refresh diff in commit message: the quoted context changes due to the update to the preceding patch in the series generator/C.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generator/C.ml b/generator/C.ml index e68fd70382cf..f772117cd3c9 100644 --- a/generator/C.ml +++ b/generator/C.ml @@ -566,7 +566,8 @@ let let ret_c_type = type_of_ret ret and errcode = errcode_of_ret ret in pr "%s\n" ret_c_type; pr "nbd_%s " name; - print_arg_list ~wrap:true ~handle:true args optargs; + print_arg_list ~wrap:true ~handle:true ~parens:(ParensNewLineWithIndent 0) + args optargs; pr "\n"; pr "{\n"; if permitted_states <> [] then