From 22617a74a75deaace3d48bb0c71852e704bbde69 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 5 Jan 2014 13:24:05 +1300 Subject: [PATCH] mprotect.2: Add "static" to global variable in example program Signed-off-by: Michael Kerrisk --- man2/mprotect.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/mprotect.2 b/man2/mprotect.2 index f8e47d9b9..f8f8fbaff 100644 --- a/man2/mprotect.2 +++ b/man2/mprotect.2 @@ -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)