diff options
author | Ed Maste <emaste@FreeBSD.org> | 2018-10-20 22:39:35 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2018-10-20 22:39:35 +0000 |
commit | 05bc9aa78fcc7152d6d13e9f5ed11612ccb5c6f4 (patch) | |
tree | 15bf188ab96f8bab8301a4f9658fd4e6b2ce7775 /lib/libc/gmon | |
parent | 188b0da1ce6708f4168309f5b925f1c9df836bc7 (diff) | |
download | src-05bc9aa78fcc7152d6d13e9f5ed11612ccb5c6f4.tar.gz src-05bc9aa78fcc7152d6d13e9f5ed11612ccb5c6f4.zip |
mcount: tidy up ANSIfication
libc/gmon's mcount was ANSIfied in r124180, with libkern following over
a decade later, in r325988, but some minor discrepancies remained.
Update libc/gmon's mexitcount to an ANSI C function definition, and use
(void) for libkern-only functions that take no arguments.
Reported by: bde
Notes
Notes:
svn path=/head/; revision=339505
Diffstat (limited to 'lib/libc/gmon')
-rw-r--r-- | lib/libc/gmon/mcount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/gmon/mcount.c b/lib/libc/gmon/mcount.c index ad2877e19b1d..0d816a734350 100644 --- a/lib/libc/gmon/mcount.c +++ b/lib/libc/gmon/mcount.c @@ -279,8 +279,7 @@ MCOUNT #ifdef GUPROF void -mexitcount(selfpc) - uintfptr_t selfpc; +mexitcount(uintfptr_t selfpc) { struct gmonparam *p; uintfptr_t selfpcdiff; |