From 7f08f55a9f88d23fcfbf1fed00f4d5a094e5fffc Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 9 Sep 2003 07:01:01 +0000 Subject: * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED]. (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED]. * sysdeps/unix/sysv/linux/bits/termios.h (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define. * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise. --- nptl_db/td_thr_event_enable.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'nptl_db/td_thr_event_enable.c') diff --git a/nptl_db/td_thr_event_enable.c b/nptl_db/td_thr_event_enable.c index badaab04d1..a02be5da44 100644 --- a/nptl_db/td_thr_event_enable.c +++ b/nptl_db/td_thr_event_enable.c @@ -18,8 +18,6 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include - #include "thread_dbP.h" @@ -31,12 +29,6 @@ td_thr_event_enable (th, onoff) LOG ("td_thr_event_enable"); /* Write the new value into the thread data structure. */ - const bool value = onoff != 0; - if (ps_pdwrite (th->th_ta_p->ph, - ((char *) th->th_unique - + offsetof (struct pthread, report_events)), - &value, sizeof value) != PS_OK) - return TD_ERR; /* XXX Other error value? */ - - return TD_OK; + return DB_PUT_FIELD (th->th_ta_p, th->th_unique, pthread, report_events, 0, + (psaddr_t) 0 + (onoff != 0)); } -- cgit v1.2.3