Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/tests/h_macros.h,v rcsdiff: /ftp/cvs/cvsroot/src/tests/h_macros.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.2 retrieving revision 1.2.2.2 diff -u -p -r1.2 -r1.2.2.2 --- src/tests/h_macros.h 2009/04/14 10:19:38 1.2 +++ src/tests/h_macros.h 2009/05/13 19:19:18 1.2.2.2 @@ -1,4 +1,4 @@ -/* $NetBSD: h_macros.h,v 1.2 2009/04/14 10:19:38 pooka Exp $ */ +/* $NetBSD: h_macros.h,v 1.2.2.2 2009/05/13 19:19:18 jym Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -33,8 +33,6 @@ #endif #include -#include -#include #include #include @@ -46,20 +44,3 @@ ATF_CHECK_MSG((x) != (v), "%s: %s", #x, strerror(errno)) #define RL(x) REQUIRE_LIBC(x, -1) - -static __inline void -atf_tc_fail_errno(const char *fmt, ...) -{ - va_list ap; - char buf[1024]; - int sverrno = errno; - - va_start(ap, fmt); - vsnprintf(buf, sizeof(buf), fmt, ap); - va_end(ap); - - strlcat(buf, ": ", sizeof(buf)); - strlcat(buf, strerror(sverrno), sizeof(buf)); - - atf_tc_fail(buf); -}