aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/zfs-tests/cmd/mkbusy/mkbusy.c4
-rw-r--r--tests/zfs-tests/cmd/mkfile/mkfile.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/zfs-tests/cmd/mkbusy/mkbusy.c b/tests/zfs-tests/cmd/mkbusy/mkbusy.c
index 50a4f90a2..c32f1ecdc 100644
--- a/tests/zfs-tests/cmd/mkbusy/mkbusy.c
+++ b/tests/zfs-tests/cmd/mkbusy/mkbusy.c
@@ -31,14 +31,14 @@
#include <string.h>
-static __attribute__((noreturn)) void
+static _Noreturn void
usage(char *progname)
{
(void) fprintf(stderr, "Usage: %s <dirname|filename>\n", progname);
exit(1);
}
-static __attribute__((noreturn)) void
+static _Noreturn void
fail(char *err)
{
perror(err);
diff --git a/tests/zfs-tests/cmd/mkfile/mkfile.c b/tests/zfs-tests/cmd/mkfile/mkfile.c
index 673cbf9e0..f59a01efa 100644
--- a/tests/zfs-tests/cmd/mkfile/mkfile.c
+++ b/tests/zfs-tests/cmd/mkfile/mkfile.c
@@ -44,7 +44,7 @@
#define FILE_MODE (S_ISVTX + S_IRUSR + S_IWUSR)
-static void usage(void) __attribute__((noreturn));
+static _Noreturn void usage(void);
int
main(int argc, char **argv)