Module Name: src
Committed By: drochner
Date: Tue Nov 17 20:46:20 UTC 2009
Modified Files:
src/lib/libc/misc: stack_protector.c
Log Message:
-delete prototypes which are already in <ssp/ssp.h>
-make __fail __noreturn__
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/misc/stack_protector.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/misc/stack_protector.c
diff -u src/lib/libc/misc/stack_protector.c:1.3 src/lib/libc/misc/stack_protector.c:1.4
--- src/lib/libc/misc/stack_protector.c:1.3 Fri Jan 30 23:21:02 2009
+++ src/lib/libc/misc/stack_protector.c Tue Nov 17 20:46:20 2009
@@ -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 @@
#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);