diff options
| author | drochner <drochner@NetBSD.org> | 2009-11-17 20:46:20 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 2009-11-17 20:46:20 +0000 |
| commit | f7e3ae7c1fb7aec68e4043e579e1e3f669cbcd63 (patch) | |
| tree | 6d6f2b1e317dc7e13e30047e1c2b872348fe762e /lib/libc/misc/stack_protector.c | |
| parent | 683ac0b2d3088ca319a0955900bd7b92a0fbbb1c (diff) | |
-delete prototypes which are already in <ssp/ssp.h>
-make __fail __noreturn__
Diffstat (limited to 'lib/libc/misc/stack_protector.c')
| -rw-r--r-- | lib/libc/misc/stack_protector.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc/misc/stack_protector.c b/lib/libc/misc/stack_protector.c index 431cc5725d8..0124c6692a5 100644 --- a/lib/libc/misc/stack_protector.c +++ b/lib/libc/misc/stack_protector.c @@ -1,4 +1,4 @@ -/* $NetBSD: stack_protector.c,v 1.3 2009/01/30 23:21:02 ad Exp $ */ +/* $NetBSD: stack_protector.c,v 1.4 2009/11/17 20:46:20 drochner Exp $ */ /* $OpenBSD: stack_protector.c,v 1.10 2006/03/31 05:34:44 deraadt Exp $ */ /* @@ -28,7 +28,7 @@ * */ #include <sys/cdefs.h> -__RCSID("$NetBSD: stack_protector.c,v 1.3 2009/01/30 23:21:02 ad Exp $"); +__RCSID("$NetBSD: stack_protector.c,v 1.4 2009/11/17 20:46:20 drochner Exp $"); #ifdef _LIBC #include "namespace.h" @@ -49,9 +49,7 @@ void xprintf(const char *fmt, ...); #endif long __stack_chk_guard[8] = {0, 0, 0, 0, 0, 0, 0, 0}; -static void __fail(const char *); -void __stack_chk_fail(void); -void __chk_fail(void); +static void __fail(const char *) __attribute__((__noreturn__)); void __stack_chk_fail_local(void); void __guard_setup(void); |
