From d3a69c8dead085c1a0135b03bc222fdb763b8053 Mon Sep 17 00:00:00 2001 From: matthew <> Date: Sun, 2 Jun 2013 21:08:36 +0000 Subject: 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 --- src/lib/libc/stdlib/atexit.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/libc/stdlib/atexit.h') 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 @@ -/* $OpenBSD: atexit.h,v 1.7 2007/09/03 14:40:16 millert Exp $ */ +/* $OpenBSD: atexit.h,v 1.8 2013/06/02 21:08:36 matthew Exp $ */ /* * Copyright (c) 2002 Daniel Hartmeier @@ -44,7 +44,6 @@ struct atexit { } fns[1]; /* the table itself */ }; -extern int __atexit_invalid; extern struct atexit *__atexit; /* points to head of LIFO stack */ int __cxa_atexit(void (*)(void *), void *, void *); -- cgit v1.2.3-55-g6feb