diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-08-29 15:18:18 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-08-29 15:18:18 +0000 |
commit | 437e564747d4773687515e9c80307b5a289a09ee (patch) | |
tree | 741c4711a8f363c448848184811cb4a3c4166896 /regress | |
parent | 26265507a5bcd0d37f4156f560de61471988d2fd (diff) |
Convert prototypes to new style.
OK millert@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libpthread/include/test.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/regress/lib/libpthread/include/test.h b/regress/lib/libpthread/include/test.h index bb04b66bc3d..fa2e6ebf8b9 100644 --- a/regress/lib/libpthread/include/test.h +++ b/regress/lib/libpthread/include/test.h @@ -1,4 +1,4 @@ -/* $OpenBSD: test.h,v 1.6 2012/04/13 10:15:49 guenther Exp $ */ +/* $OpenBSD: test.h,v 1.7 2024/08/29 15:18:17 claudio Exp $ */ #ifndef _h_test_ #define _h_test_ @@ -14,7 +14,8 @@ static void __vpanic(const char *, const char *, const char *, int, const char *, va_list) __attribute__((__noreturn__)); static void __panic(const char *, const char *, const char *, - int, const char *, ...) __attribute__((__noreturn__)); + int, const char *, ...) __attribute__((__noreturn__)) + __attribute__((__format__ (printf, 5, 6))); #if defined(__OpenBSD__) || defined(__FreeBSD__) #include <pthread.h> @@ -33,13 +34,8 @@ void _thread_sys__exit(int) __attribute__((__noreturn__)); #endif static void -__vpanic(type, errstr, filenm, lineno, fmt, ap) - const char *type; - const char *errstr; - const char *filenm; - int lineno; - const char *fmt; - va_list ap; +__vpanic(const char *type, const char *errstr, const char *filenm, int lineno, + const char *fmt, va_list ap) { char buf[1024]; @@ -62,12 +58,8 @@ __vpanic(type, errstr, filenm, lineno, fmt, ap) } static void -__panic(type, errstr, filenm, lineno, fmt) - const char *type; - const char *errstr; - const char *filenm; - int lineno; - const char *fmt; +__panic(const char *type, const char *errstr, const char *filenm, int lineno, + const char *fmt, ...) { va_list ap; |