Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2000 17:35:58 +0100 (CET)
From:      Alexander Langer <alex@cichlids.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/16176: fix editors/yudit
Message-ID:  <200001181635.RAA70398@cichlids.cichlids.com>

next in thread | raw e-mail | index | archive | help
	Note: There was a bad value `changer-request' for the field `>Class:'.
	It was set to the default value of `sw-bug'.


>Number:         16176
>Category:       ports
>Synopsis:       fix editors/yudit
>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:   Tue Jan 18 08:40:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Langer
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
no
>Environment:


>Description:

fix error found by bento.

Guys. This is my third failure I see because mmap returns void *, the programs
want char * without a cast and the new cpp-compiler permits this.

This explains the high rate of ports-build-logs on current asami noted.

>How-To-Repeat:

see bento

>Fix:

use this as patch-ac

--- src/UPrint.cpp.old	Tue Jan 18 17:29:16 2000
+++ src/UPrint.cpp	Tue Jan 18 17:30:21 2000
@@ -372,7 +372,7 @@
 		errors += "'.";
 		return ERROR;
 	}
-	fileBuffer = mmap (0, fileBufferLen,  PROT_READ, MAP_PRIVATE, fd, 0);
+	fileBuffer = (char *) mmap (0, fileBufferLen,  PROT_READ, MAP_PRIVATE, fd, 0);
 	if (fileBuffer==0)
 	{
 		errors = "error: can not mmap font  '";

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001181635.RAA70398>