mirror of https://github.com/mkerrisk/man-pages
mprotect.2: Add "static" to global variable in example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
3d6efadb2c
commit
22617a74a7
|
@ -35,7 +35,7 @@
|
|||
.\" PROT_GROWSUP
|
||||
.\" PROT_SAO (PowerPC)
|
||||
.\"
|
||||
.TH MPROTECT 2 2012-08-14 "Linux" "Linux Programmer's Manual"
|
||||
.TH MPROTECT 2 2014-01-05 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
mprotect \- set protection on a region of memory
|
||||
.SH SYNOPSIS
|
||||
|
@ -176,7 +176,7 @@ Got SIGSEGV at address: 0x804e000
|
|||
#define handle_error(msg) \\
|
||||
do { perror(msg); exit(EXIT_FAILURE); } while (0)
|
||||
|
||||
char *buffer;
|
||||
static char *buffer;
|
||||
|
||||
static void
|
||||
handler(int sig, siginfo_t *si, void *unused)
|
||||
|
|
Loading…
Reference in New Issue