No semicolon after macro do ... while (0) wrapper.

This commit is contained in:
gson 2018-06-19 09:20:46 +00:00
parent c6e8e773a7
commit 036399b6f4
3 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: h_fsmacros.h,v 1.41 2017/01/13 21:30:39 christos Exp $ */
/* $NetBSD: h_fsmacros.h,v 1.42 2018/06/19 09:20:46 gson Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@ -82,7 +82,7 @@ do { \
atf_tc_fail_errno("newfs failed"); \
if (_fs_##_fstest_mount(_tc_, _args_, FSTEST_MNTNAME, 0) != 0) \
atf_tc_fail_errno("mount failed"); \
} while (/*CONSTCOND*/0);
} while (/*CONSTCOND*/0)
#define FSTEST_CONSTRUCTOR_FSPRIV(_tc_, _fs_, _args_, _privargs_) \
do { \
@ -91,7 +91,7 @@ do { \
atf_tc_fail_errno("newfs failed"); \
if (_fs_##_fstest_mount(_tc_, _args_, FSTEST_MNTNAME, 0) != 0) \
atf_tc_fail_errno("mount failed"); \
} while (/*CONSTCOND*/0);
} while (/*CONSTCOND*/0)
#define FSTEST_DESTRUCTOR(_tc_, _fs_, _args_) \
do { \
@ -101,7 +101,7 @@ do { \
} \
if (_fs_##_fstest_delfs(_tc_, _args_) != 0) \
atf_tc_fail_errno("delfs failed"); \
} while (/*CONSTCOND*/0);
} while (/*CONSTCOND*/0)
#define ATF_TC_FSADD(fs,type,func,desc) \
ATF_TC(fs##_##func); \

View File

@ -1,4 +1,4 @@
/* $NetBSD: t_dir.c,v 1.10 2017/01/11 18:15:02 christos Exp $ */
/* $NetBSD: t_dir.c,v 1.11 2018/06/19 09:20:46 gson Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@ -61,7 +61,7 @@ ATF_TC_BODY(seekdir_basic, tc)
"creat(%s, %x) failed: %s", (x), (m), \
strerror(errno)); \
(void)close(_creat_fd); \
} while(0);
} while (0)
ATF_REQUIRE_MSG(mkdir("t", 0755) == 0,
"mkdir failed: %s", strerror(errno));

View File

@ -1,4 +1,4 @@
/* $NetBSD: t_posix_fadvise.c,v 1.2 2017/01/13 21:30:41 christos Exp $ */
/* $NetBSD: t_posix_fadvise.c,v 1.3 2018/06/19 09:20:46 gson Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -58,7 +58,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2008\
The NetBSD Foundation, inc. All rights reserved.");
__RCSID("$NetBSD: t_posix_fadvise.c,v 1.2 2017/01/13 21:30:41 christos Exp $");
__RCSID("$NetBSD: t_posix_fadvise.c,v 1.3 2018/06/19 09:20:46 gson Exp $");
#include <sys/fcntl.h>
@ -112,7 +112,7 @@ ATF_TC_BODY(posix_fadvise, tc)
ATF_CHECK_EQ_MSG(ret = (x), exp, "got: %d", ret); \
ATF_CHECK_EQ_MSG(errno, 999, "got: %s", strerror(errno)); \
errno = save; \
} while (0);
} while (0)
CE(posix_fadvise(fd, 0, 0, -1), EINVAL);
CE(posix_fadvise(pipe_fds[0], 0, 0, POSIX_FADV_NORMAL), ESPIPE);