diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2016-01-19 20:32:30 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2016-01-19 20:32:30 +0000 |
commit | 6cd7ab80bb739445d5176e232341a5bf4e2b6aa1 (patch) | |
tree | 7dcc8b37e4dd18f72981bb9cb5ad18749179706b /lib/libc | |
parent | aa93b74ba2504d4eb64a9e46f57df7eff93564b6 (diff) |
replace (void *)0 with NULL
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gmon/gmon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c index 0212259a44a..38d5aa87c95 100644 --- a/lib/libc/gmon/gmon.c +++ b/lib/libc/gmon/gmon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gmon.c,v 1.25 2015/09/14 14:17:10 guenther Exp $ */ +/* $OpenBSD: gmon.c,v 1.26 2016/01/19 20:32:29 mmcc Exp $ */ /*- * Copyright (c) 1983, 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -78,19 +78,19 @@ monstartup(u_long lowpc, u_long highpc) p->tolimit = MAXARCS; p->tossize = p->tolimit * sizeof(struct tostruct); - addr = mmap((void *)0, p->kcountsize, PROT_READ|PROT_WRITE, + addr = mmap(NULL, p->kcountsize, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, (off_t)0); if (addr == MAP_FAILED) goto mapfailed; p->kcount = addr; - addr = mmap((void *)0, p->fromssize, PROT_READ|PROT_WRITE, + addr = mmap(NULL, p->fromssize, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, (off_t)0); if (addr == MAP_FAILED) goto mapfailed; p->froms = addr; - addr = mmap((void *)0, p->tossize, PROT_READ|PROT_WRITE, + addr = mmap(NULL, p->tossize, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, (off_t)0); if (addr == MAP_FAILED) goto mapfailed; |