1.1 --- a/client.c Thu Mar 23 00:32:22 2023 +0100
1.2 +++ b/client.c Sun Jan 14 23:22:03 2024 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Client code generation.
1.6 *
1.7 - * Copyright (C) 2019, 2020, 2021, 2022, 2023 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2019-2024 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -89,13 +89,6 @@
1.13
1.14 fprintf(fp, "\n ipc_message_new(&msg);\n");
1.15
1.16 - /* Generate expected output item requirements. */
1.17 -
1.18 - if (output_items)
1.19 - fprintf(fp, " err = ipc_message_expect(&msg, %d);\n"
1.20 - " if (err)\n"
1.21 - " return err;\n", output_items);
1.22 -
1.23 /* Populate input parameters in the message. Dereference function parameters
1.24 acting as "inout" parameters. */
1.25
1.26 @@ -114,9 +107,9 @@
1.27 WORD_CLASS, fp);
1.28 }
1.29
1.30 - /* Do the same for items. */
1.31 + /* Do the same for items, also preparing to receive output items. */
1.32
1.33 - if (input_items)
1.34 + if (input_items | output_items)
1.35 {
1.36 fputs("\n", fp);
1.37 write_message_access(param, CLIENT_ROLE, GENERAL_FUNCTION_ROLE, IN_PARAMETER,