diff options
author | theraven <theraven@FreeBSD.org> | 2014-04-05 08:17:48 +0000 |
---|---|---|
committer | theraven <theraven@FreeBSD.org> | 2014-04-05 08:17:48 +0000 |
commit | 41f3d1de315bb454750d75c8f6a05e0bc353bf35 (patch) | |
tree | ad1d7faf6eebba173cc8271756232b03ea30b047 /lib/libc/stdlib/atexit.c | |
parent | 2eab8fff0d6a3b3b357d2fefc7675a4291800d7d (diff) | |
download | FreeBSD-src-41f3d1de315bb454750d75c8f6a05e0bc353bf35.zip FreeBSD-src-41f3d1de315bb454750d75c8f6a05e0bc353bf35.tar.gz |
Silence a warning with GCC that was breaking the build with Juniper's GCC.
Reviewed by: marcel
Diffstat (limited to 'lib/libc/stdlib/atexit.c')
-rw-r--r-- | lib/libc/stdlib/atexit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdlib/atexit.c b/lib/libc/stdlib/atexit.c index 43b6aa1..0a5048a 100644 --- a/lib/libc/stdlib/atexit.c +++ b/lib/libc/stdlib/atexit.c @@ -80,6 +80,7 @@ struct atexit { }; static struct atexit *__atexit; /* points to head of LIFO stack */ +typedef DECLARE_BLOCK(void, atexit_block, void); /* * Register the function described by 'fptr' to be called at application @@ -141,7 +142,7 @@ atexit(void (*func)(void)) * Register a block to be performed at exit. */ int -atexit_b(DECLARE_BLOCK(void, func, void)) +atexit_b(atexit_block func) { struct atexit_fn fn; int error; |