mprotect.2: Add "static" to global variable in example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-01-05 13:24:05 +13:00
parent 3d6efadb2c
commit 22617a74a7
1 changed files with 2 additions and 2 deletions

View File

@ -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)