summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2016-03-14 14:48:02 +0000
committermmcc <mmcc@openbsd.org>2016-03-14 14:48:02 +0000
commite72220c0415298894834e3691051f10222679885 (patch)
tree11d5299cc37ec6bf13c732927108607b30b05357
parentreplace __progname with getprogname(3) (diff)
downloadwireguard-openbsd-e72220c0415298894834e3691051f10222679885.tar.xz
wireguard-openbsd-e72220c0415298894834e3691051f10222679885.zip
(char *)0 -> NULL
-rw-r--r--lib/libc/gmon/gmon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c
index 3ac54b3dc48..886505f0c79 100644
--- a/lib/libc/gmon/gmon.c
+++ b/lib/libc/gmon/gmon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gmon.c,v 1.27 2016/03/13 18:34:20 guenther Exp $ */
+/* $OpenBSD: gmon.c,v 1.28 2016/03/14 14:48:02 mmcc Exp $ */
/*-
* Copyright (c) 1983, 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -302,7 +302,7 @@ moncontrol(int mode)
p->state = GMON_PROF_ON;
} else {
/* stop */
- profil((char *)0, 0, 0, 0);
+ profil(NULL, 0, 0, 0);
p->state = GMON_PROF_OFF;
}
}