Skip to content

Commit 8b42723

Browse files
committed
Fix functions to match external prototype.
1 parent 048d844 commit 8b42723

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/libc/sys/stack_protector.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ extern
3939
#endif
4040
long __stack_chk_guard[8] __attribute__((alias("__guard")));
4141

42-
void __stack_smash_handler(char func[], int damaged __attribute__((unused)));
42+
void __stack_smash_handler(const char func[], int damaged __attribute__((unused)));
4343
void __attribute__((noreturn)) __stack_chk_fail(void);
4444

4545
/*ARGSUSED*/
4646
void
47-
__stack_smash_handler(char func[], int damaged)
47+
__stack_smash_handler(const char func[], int damaged)
4848
{
4949
struct syslog_data sdata = SYSLOG_DATA_INIT;
5050
const char *message = "stack overflow in function %s";

0 commit comments

Comments
 (0)