From b8dce3698624f02a90d3120a57c399d141e00fc2 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 31 Mar 2009 18:48:16 +0000 Subject: Avoid hardcoded "too large" constant that caused FPE on the vax. XXX: Should pullup to 5.0 --- trek/schedule.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'trek/schedule.c') diff --git a/trek/schedule.c b/trek/schedule.c index d3c0c286..455c5e06 100644 --- a/trek/schedule.c +++ b/trek/schedule.c @@ -1,4 +1,4 @@ -/* $NetBSD: schedule.c,v 1.6 2006/03/19 00:56:12 christos Exp $ */ +/* $NetBSD: schedule.c,v 1.7 2009/03/31 18:48:16 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,13 +34,14 @@ #if 0 static char sccsid[] = "@(#)schedule.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: schedule.c,v 1.6 2006/03/19 00:56:12 christos Exp $"); +__RCSID("$NetBSD: schedule.c,v 1.7 2009/03/31 18:48:16 christos Exp $"); #endif #endif /* not lint */ #include #include #include +#include #include "trek.h" /* @@ -135,7 +136,7 @@ struct event *e1; e->evcode, e->date, e->x, e->y, e->systemname); # endif Now.eventptr[e->evcode & E_EVENT] = 0; - e->date = 1e50; + e->date = TOOLARGE; e->evcode = 0; return; } -- cgit v1.2.3-56-ge451