summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorcl <cl@NetBSD.org>2003-11-24 23:23:17 +0000
committercl <cl@NetBSD.org>2003-11-24 23:23:17 +0000
commit4f8ea513198b96f236609c977a51ca2d40cf1606 (patch)
treeb2097277d9767169ee8b5ebd8585b83d8dddcdb1 /lib/libpthread
parent250e7bbf8e25fa05131cdda689a593832e1b0277 (diff)
add CONSTCOND in constant condition.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/pthread_cancelstub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/pthread_cancelstub.c b/lib/libpthread/pthread_cancelstub.c
index acc2c21e885..b4e4c87d776 100644
--- a/lib/libpthread/pthread_cancelstub.c
+++ b/lib/libpthread/pthread_cancelstub.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_cancelstub.c,v 1.7 2003/11/21 23:03:13 nathanw Exp $ */
+/* $NetBSD: pthread_cancelstub.c,v 1.8 2003/11/24 23:23:17 cl Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_cancelstub.c,v 1.7 2003/11/21 23:03:13 nathanw Exp $");
+__RCSID("$NetBSD: pthread_cancelstub.c,v 1.8 2003/11/24 23:23:17 cl Exp $");
/*
* This is necessary because the fsync_range() name is always weak (it is
@@ -93,7 +93,7 @@ ssize_t _sys_writev(int, const struct iovec *, int);
#define TESTCANCEL(id) do { \
if (__predict_false((id)->pt_cancel)) \
pthread_exit(PTHREAD_CANCELED); \
- } while (0)
+ } while (/*CONSTCOND*/0)
int