From 6d77d031fd3aa0b508161c04c8f3ab848698914a Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Wed, 22 Sep 2004 20:26:33 +0000 Subject: [PATCH] The offset argument to mmap(2) is not a pointer. Use 0 instead of NULL. --- lib/libkvm/kvm_ia64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libkvm/kvm_ia64.c b/lib/libkvm/kvm_ia64.c index 964919097253..5b6f1c0aea6b 100644 --- a/lib/libkvm/kvm_ia64.c +++ b/lib/libkvm/kvm_ia64.c @@ -72,7 +72,7 @@ _kvm_maphdrs(kvm_t *kd, size_t sz) } vm->mmapsize = sz; - vm->mmapbase = mmap(NULL, sz, PROT_READ, MAP_PRIVATE, kd->pmfd, NULL); + vm->mmapbase = mmap(NULL, sz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); if (vm->mmapbase == MAP_FAILED) { _kvm_err(kd, kd->program, "cannot mmap corefile"); return (-1);