diff options
| author | drochner <drochner@NetBSD.org> | 2004-06-25 16:33:32 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 2004-06-25 16:33:32 +0000 |
| commit | 0e6c93b9fa24b895cda7662aa31db1d6fc9ca2c8 (patch) | |
| tree | 8b0cbbb5fda45194b2b6e71376fae834b35a1daa /lib/libpthread/pthread.c | |
| parent | 54a45d8710d17bcc4fa36e7b5969947e01324cbf (diff) | |
const'ify the arguments to pthread__assertfunc and _errorfunc;
needed because the __func__ pseudo-var is strictly "const*" in gcc-3.4
Diffstat (limited to 'lib/libpthread/pthread.c')
| -rw-r--r-- | lib/libpthread/pthread.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libpthread/pthread.c b/lib/libpthread/pthread.c index 7ac579dcd35..b9a9c5f2543 100644 --- a/lib/libpthread/pthread.c +++ b/lib/libpthread/pthread.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread.c,v 1.33 2004/03/14 01:19:41 cl Exp $ */ +/* $NetBSD: pthread.c,v 1.34 2004/06/25 16:33:32 drochner Exp $ */ /*- * Copyright (c) 2001,2002,2003 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread.c,v 1.33 2004/03/14 01:19:41 cl Exp $"); +__RCSID("$NetBSD: pthread.c,v 1.34 2004/06/25 16:33:32 drochner Exp $"); #include <err.h> #include <errno.h> @@ -1038,7 +1038,8 @@ pthread__errno(void) ssize_t _sys_write(int, const void *, size_t); void -pthread__assertfunc(char *file, int line, char *function, char *expr) +pthread__assertfunc(const char *file, int line, const char *function, + const char *expr) { char buf[1024]; int len; @@ -1062,7 +1063,8 @@ pthread__assertfunc(char *file, int line, char *function, char *expr) void -pthread__errorfunc(char *file, int line, char *function, char *msg) +pthread__errorfunc(const char *file, int line, const char *function, + const char *msg) { char buf[1024]; size_t len; |
