diff options
| author | uwe <uwe@NetBSD.org> | 2019-12-15 22:32:29 +0000 |
|---|---|---|
| committer | uwe <uwe@NetBSD.org> | 2019-12-15 22:32:29 +0000 |
| commit | ac7fbffdff75bc645fcafc5df5ff87a040224902 (patch) | |
| tree | a42396c3f0285eb596c450323cd167f79f5f5f97 /lib/libpthread | |
| parent | 57eaf385f2a7e53e8416a06cb9eaa846a75aa9d4 (diff) | |
Drop bogus _DIAGASSERT that don't even compile.
Diffstat (limited to 'lib/libpthread')
| -rw-r--r-- | lib/libpthread/tss.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/libpthread/tss.c b/lib/libpthread/tss.c index f6a8af95a8f..ce9f1038a77 100644 --- a/lib/libpthread/tss.c +++ b/lib/libpthread/tss.c @@ -1,4 +1,4 @@ -/* $NetBSD: tss.c,v 1.1 2019/04/24 11:43:19 kamil Exp $ */ +/* $NetBSD: tss.c,v 1.2 2019/12/15 22:32:29 uwe Exp $ */ /*- * Copyright (c) 2016 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: tss.c,v 1.1 2019/04/24 11:43:19 kamil Exp $"); +__RCSID("$NetBSD: tss.c,v 1.2 2019/12/15 22:32:29 uwe Exp $"); #include <assert.h> #include <errno.h> @@ -53,8 +53,6 @@ void tss_delete(tss_t key) { - _DIAGASSERT(key != NULL); - /* * The tss_delete(3) function that conforms to C11 returns no value. */ @@ -65,8 +63,6 @@ void * tss_get(tss_t key) { - _DIAGASSERT(key != NULL); - return pthread_getspecific(key); } @@ -74,8 +70,6 @@ int tss_set(tss_t key, void *val) { - _DIAGASSERT(key != NULL); - if (pthread_setspecific(key, val) == 0) return thrd_success; |
