1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Define MAXARCS correctly. It has nothing to do with HISTCOUNTER, and

overflowed when I enlarged HISTCOUNTER to u_int.
This commit is contained in:
Bruce Evans 1995-01-29 06:23:34 +00:00
parent e45d35c3f8
commit 5053292ac8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6010

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)gmon.h 8.2 (Berkeley) 1/4/94
* $Id$
* $Id: gmon.h,v 1.2 1994/08/02 07:53:02 davidg Exp $
*/
#ifndef _SYS_GMON_H_
@ -97,7 +97,12 @@ struct gmonhdr {
*/
#define ARCDENSITY 2
#define MINARCS 50
#define MAXARCS ((1 << (8 * sizeof(HISTCOUNTER))) - 2)
/*
* Limit on the number of arcs to so that arc numbers can be stored in
* `*froms' and stored and incremented without overflow in links.
*/
#define MAXARCS (((u_long)1 << (8 * sizeof(u_short))) - 2)
struct tostruct {
u_long selfpc;