summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/atexit.h
diff options
context:
space:
mode:
authormatthew <>2013-06-02 21:08:36 +0000
committermatthew <>2013-06-02 21:08:36 +0000
commitd3a69c8dead085c1a0135b03bc222fdb763b8053 (patch)
treee26182b2ca2e8d39107cf5e87e5ebc882fdd0e4f /src/lib/libc/stdlib/atexit.h
parentb0e593fe1c5f802ac8e56eb2833f3cc0bdf471c8 (diff)
downloadopenbsd-d3a69c8dead085c1a0135b03bc222fdb763b8053.tar.gz
openbsd-d3a69c8dead085c1a0135b03bc222fdb763b8053.tar.bz2
openbsd-d3a69c8dead085c1a0135b03bc222fdb763b8053.zip
Two small cleanups to atexit: remove unneeded __atexit_invalid, and
move the call_depth decrement so it happens unconditionally and can still return to 0 when called with dso!=NULL. ok millert
Diffstat (limited to 'src/lib/libc/stdlib/atexit.h')
-rw-r--r--src/lib/libc/stdlib/atexit.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/atexit.h b/src/lib/libc/stdlib/atexit.h
index 1b23565dd0..c44005deda 100644
--- a/src/lib/libc/stdlib/atexit.h
+++ b/src/lib/libc/stdlib/atexit.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: atexit.h,v 1.7 2007/09/03 14:40:16 millert Exp $ */ 1/* $OpenBSD: atexit.h,v 1.8 2013/06/02 21:08:36 matthew Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2002 Daniel Hartmeier 4 * Copyright (c) 2002 Daniel Hartmeier
@@ -44,7 +44,6 @@ struct atexit {
44 } fns[1]; /* the table itself */ 44 } fns[1]; /* the table itself */
45}; 45};
46 46
47extern int __atexit_invalid;
48extern struct atexit *__atexit; /* points to head of LIFO stack */ 47extern struct atexit *__atexit; /* points to head of LIFO stack */
49 48
50int __cxa_atexit(void (*)(void *), void *, void *); 49int __cxa_atexit(void (*)(void *), void *, void *);