summaryrefslogtreecommitdiff
path: root/src/stdlib/exit.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-06-05 15:07:06 -0400
committerJakob Kaivo <jkk@ung.org>2024-06-05 15:07:06 -0400
commit1161633db54ce8fd1180649f52909390a2986213 (patch)
tree81eb6390d21e2ad435595f534664121b181a5bb5 /src/stdlib/exit.c
parent66d9ce2cdab4e989e7b4fbab17ba7f4aa4a4af70 (diff)
rename all per-header internal structs to __<header>_h
Diffstat (limited to 'src/stdlib/exit.c')
-rw-r--r--src/stdlib/exit.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/stdlib/exit.c b/src/stdlib/exit.c
index e6423891..928c4423 100644
--- a/src/stdlib/exit.c
+++ b/src/stdlib/exit.c
@@ -8,17 +8,17 @@
/** cause normal program termination **/
_Noreturn void exit(int status)
{
- struct atexit *ae = &(__stdlib.atexit);
+ struct atexit *ae = &(__stdlib_h.atexit);
SIGNAL_SAFE(0);
- if (__stdlib.exit_called == QUICK) {
- __stdlib.constraint_handler("Undefined behavior: exit() called after quick_exit()", NULL, 0);
+ if (__stdlib_h.exit_called == QUICK) {
+ __stdlib_h.constraint_handler("Undefined behavior: exit() called after quick_exit()", NULL, 0);
}
- if (__stdlib.exit_called == REGULAR) {
- __stdlib.constraint_handler("Undefined behavior: exit() called twice", NULL, 0);
+ if (__stdlib_h.exit_called == REGULAR) {
+ __stdlib_h.constraint_handler("Undefined behavior: exit() called twice", NULL, 0);
}
- __stdlib.exit_called = REGULAR;
+ __stdlib_h.exit_called = REGULAR;
/* execute all atexit() registered functions in reverse order */
while (ae) {