Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread_dbg Simplify (pthread_t)pt_magic read in td_m...
details: https://anonhg.NetBSD.org/src/rev/7f54cefdac48
branches: trunk
changeset: 349067:7f54cefdac48
user: kamil <kamil%NetBSD.org@localhost>
date: Tue Nov 22 04:17:05 2016 +0000
description:
Simplify (pthread_t)pt_magic read in td_map_pth2thr(3)
No functional change. All ATF tests for pthread_dbg(3) still pass.
Sponsored by <The NetBSD Foundation>
diffstat:
lib/libpthread_dbg/pthread_dbg.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r d30f1092d245 -r 7f54cefdac48 lib/libpthread_dbg/pthread_dbg.c
--- a/lib/libpthread_dbg/pthread_dbg.c Tue Nov 22 03:52:01 2016 +0000
+++ b/lib/libpthread_dbg/pthread_dbg.c Tue Nov 22 04:17:05 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_dbg.c,v 1.49 2016/11/21 03:02:34 kamil Exp $ */
+/* $NetBSD: pthread_dbg.c,v 1.50 2016/11/22 04:17:05 kamil Exp $ */
/*-
* Copyright (c) 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_dbg.c,v 1.49 2016/11/21 03:02:34 kamil Exp $");
+__RCSID("$NetBSD: pthread_dbg.c,v 1.50 2016/11/22 04:17:05 kamil Exp $");
#define __EXPOSE_STACK 1
@@ -345,9 +345,7 @@
{
int magic, val;
- val = READ(proc,
- (char *)thread + offsetof(struct __pthread_st, pt_magic),
- &magic, sizeof(magic));
+ val = READ(proc, (caddr_t)&thread->pt_magic, &magic, sizeof(magic));
if (val != 0)
return val;
Home |
Main Index |
Thread Index |
Old Index