/* determine new setting for operational value if limit is lower than mib use limit else use mib NOTE : numbers are negative, negate comparison !  */
static int set_min_max(int maxflag, u_long mib, u_long limit, u_long *oper)
/* determine new setting for operational value if limit is lower than mib use limit else use mib NOTE : numbers are negative, negate comparison !  */
static int set_min_max(int maxflag, u_long mib, u_long limit, u_long *oper)
{
	u_long	old ;
	old = *oper ;
	if ((limit > mib) ^ maxflag)
		*oper = limit ;
	else
		*oper = mib ;
	return(old != *oper) ;
}