Add CHECK_NOT_THREADED() in __libc_mutexattr_settype_stub()
This makes this function consistent with __libc_mutex_catchall_stub() and others in the same group. Approved by <christos>.
This commit is contained in:
parent
0551ffcf66
commit
3b2abf0b2a
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: thread-stub.c,v 1.27 2013/05/28 17:29:41 christos Exp $ */
|
/* $NetBSD: thread-stub.c,v 1.28 2016/10/31 18:10:11 kamil Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2003, 2009 The NetBSD Foundation, Inc.
|
* Copyright (c) 2003, 2009 The NetBSD Foundation, Inc.
|
||||||
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
__RCSID("$NetBSD: thread-stub.c,v 1.27 2013/05/28 17:29:41 christos Exp $");
|
__RCSID("$NetBSD: thread-stub.c,v 1.28 2016/10/31 18:10:11 kamil Exp $");
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -146,6 +146,8 @@ __libc_mutexattr_settype_stub(mutexattr_t *ma, int type)
|
|||||||
/* LINTED deliberate lack of effect */
|
/* LINTED deliberate lack of effect */
|
||||||
(void)type;
|
(void)type;
|
||||||
|
|
||||||
|
CHECK_NOT_THREADED();
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user