Re: [PATCH] tests: Fix typo in recent test change
On Wed, Oct 05, 2022 at 02:26:35PM -0500, Eric Blake wrote:
> A missing } caused 'make check' to fail. While at it, use TAB
> consistently.
Whoops, didn't check that properly.
Yes, thanks; please push.
> Fixes: af309d8a ("nbd-server: fix bug in auth for v6-mapped IPv4 addresses")
> CC: 吕梦昭10286442 <lv.mengzhao@zte.com.cn>
> Signed-off-by: Eric Blake <eblake@redhat.com>
> ---
>
> Pushed as obvious.
>
> tests/code/clientacl.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/tests/code/clientacl.c b/tests/code/clientacl.c
> index 3bceb2f..da614fd 100644
> --- a/tests/code/clientacl.c
> +++ b/tests/code/clientacl.c
> @@ -29,8 +29,9 @@ bool do_test(char* address, char* netmask) {
> while(res) {
> if((err = getnameinfo((struct sockaddr*)res->ai_addr, res->ai_addrlen, buf,
> sizeof (buf), NULL, 0, NI_NUMERICHOST))) {
> - fprintf(stderr, "E: %s\n", gai_strerror(err));
> - exit(EXIT_FAILURE);
> + fprintf(stderr, "E: %s\n", gai_strerror(err));
> + exit(EXIT_FAILURE);
> + }
>
> printf("Found %s\n", buf);
>
> --
> 2.37.3
>
>
--
w@uter.{be,co.za}
wouter@{grep.be,fosdem.org,debian.org}
I will have a Tin-Actinium-Potassium mixture, thanks.
Reply to: