aboutsummaryrefslogtreecommitdiff
path: root/nptl_db/td_thr_event_getmsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl_db/td_thr_event_getmsg.c')
-rw-r--r--nptl_db/td_thr_event_getmsg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nptl_db/td_thr_event_getmsg.c b/nptl_db/td_thr_event_getmsg.c
index c0db52d..247f6d7 100644
--- a/nptl_db/td_thr_event_getmsg.c
+++ b/nptl_db/td_thr_event_getmsg.c
@@ -1,5 +1,5 @@
/* Retrieve event.
- Copyright (C) 1999-2024 Free Software Foundation, Inc.
+ Copyright (C) 1999-2025 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -74,7 +74,7 @@ td_thr_event_getmsg (const td_thrhandle_t *th, td_event_msg_t *msg)
if (err != TD_OK)
return err;
- while (thp != 0)
+ while (thp != NULL)
{
psaddr_t next;
err = DB_GET_FIELD (next, th->th_ta_p, th->th_unique, pthread,
@@ -97,13 +97,13 @@ td_thr_event_getmsg (const td_thrhandle_t *th, td_event_msg_t *msg)
err = _td_store_value (th->th_ta_p,
th->th_ta_p->ta_var___nptl_last_event, -1,
- 0, prevp, next);
+ NULL, prevp, next);
if (err != TD_OK)
return err;
/* Now clear this thread's own next pointer so it's not dangling
when the thread resumes and then chains on for its next event. */
- return DB_PUT_FIELD (th->th_ta_p, thp, pthread, nextevent, 0, 0);
+ return DB_PUT_FIELD (th->th_ta_p, thp, pthread, nextevent, 0, NULL);
}
err = DB_GET_FIELD_ADDRESS (prevp, th->th_ta_p, thp, pthread,