From owner-freebsd-ports Mon Oct 7 2:20: 5 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BA9837B401 for ; Mon, 7 Oct 2002 02:20:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDCD043E88 for ; Mon, 7 Oct 2002 02:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g979K2Co033328 for ; Mon, 7 Oct 2002 02:20:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g979K26n033327; Mon, 7 Oct 2002 02:20:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AC6137B401 for ; Mon, 7 Oct 2002 02:13:38 -0700 (PDT) Received: from relay2.agava.net.ru (ofc.agava.net [195.161.118.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id A178743E86 for ; Mon, 7 Oct 2002 02:13:37 -0700 (PDT) (envelope-from mcsi@agava.com) Received: from ultra.domain (ultra.domain [192.168.1.58]) by relay2.agava.net.ru (Postfix) with ESMTP id B70A04772CD for ; Mon, 7 Oct 2002 13:13:35 +0400 (MSD) Received: from ultra.domain (localhost [127.0.0.1]) by ultra.domain (8.12.6/8.12.5) with ESMTP id g979FIHw038745 for ; Mon, 7 Oct 2002 13:15:18 +0400 (MSD) (envelope-from mcsi@ultra.domain) Received: (from mcsi@localhost) by ultra.domain (8.12.6/8.12.6/Submit) id g979FHmq038744; Mon, 7 Oct 2002 13:15:18 +0400 (MSD) Message-Id: <200210070915.g979FHmq038744@ultra.domain> Date: Mon, 7 Oct 2002 13:15:18 +0400 (MSD) From: Maxim Maximov Reply-To: Maxim Maximov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/43761: fix build of emulators/adamem Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 43761 >Category: ports >Synopsis: fix build of emulators/adamem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 07 02:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Maxim Maximov >Release: FreeBSD 4.7-RC i386 >Organization: >Environment: System: FreeBSD ultra.domain 4.7-RC FreeBSD 4.7-RC #9: Fri Oct 4 12:38:44 MSD 2002 mcsi@ultra.domain:/usr/obj/usr/src/sys/ULTRA i386 >Description: fix build for emulators/adamem >How-To-Repeat: >Fix: --- DSP.c.orig Mon Oct 7 13:10:24 2002 +++ DSP.c Mon Oct 7 13:10:53 2002 @@ -15,7 +15,7 @@ #include #include -#include +#include static int initialised=0; static int stereo=0; @@ -103,7 +103,7 @@ if (freq>MAXFREQ) freq=MAXFREQ; - if (freq>(MAXINT/441)) freq=MAXINT/441; /* avoid overflows */ + if (freq>(INT_MAX/441)) freq=INT_MAX/441; /* avoid overflows */ if (channel==3) { for (i=0;i<5;++i) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message