diff options
author | marcel <marcel@FreeBSD.org> | 2004-09-22 20:26:33 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-09-22 20:26:33 +0000 |
commit | f3532c8563aa24f80475916e319b8606cce4b94e (patch) | |
tree | 68e73618097c41cbd83820a85ad982a8662341da /lib | |
parent | 1bbea71b248d2ff07ead9cc31eebcf40654e443a (diff) | |
download | FreeBSD-src-f3532c8563aa24f80475916e319b8606cce4b94e.zip FreeBSD-src-f3532c8563aa24f80475916e319b8606cce4b94e.tar.gz |
The offset argument to mmap(2) is not a pointer. Use 0 instead of NULL.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkvm/kvm_ia64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_ia64.c b/lib/libkvm/kvm_ia64.c index 9649190..5b6f1c0 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); |