gcl_mprotect typos - gcl.git - GNU Common Lisp

index : gcl.git
GNU Common Lisp
summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamm Maguire <camm@debian.org>2014年08月19日 18:17:45 +0000
committerCamm Maguire <camm@debian.org>2014年08月19日 18:17:45 +0000
commitdf38cf13f10cbb29a39cb078c10f1d752cc42f24 (patch)
treea4284f2d6cac07a77341f4760af9df00711788bf
parent1742019a6bf4be3b99fc4881b4ae470e7420d604 (diff)
downloadgcl-df38cf13f10cbb29a39cb078c10f1d752cc42f24.tar.gz
gcl_mprotect typos
Diffstat
-rwxr-xr-xgcl/o/main.c 3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcl/o/main.c b/gcl/o/main.c
index 089672dfd..d247f25b0 100755
--- a/gcl/o/main.c
+++ b/gcl/o/main.c
@@ -28,6 +28,7 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
+#include <sys/mman.h>
static void
init_main(void);
@@ -338,7 +339,7 @@ gcl_mprotect(void *v,size_t l,int p) {
char b[80];
if ((i=mprotect(v,l,p))) {
- snprintf(b,sizeof(b),"mprotect failure: %p %u %d\b",c,l,p);
+ snprintf(b,sizeof(b),"mprotect failure: %p %lu %d\b",v,l,p);
perror(b);
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月02日 05:14:41 +0000

AltStyle によって変換されたページ (->オリジナル) /