Date: Thu, 12 Dec 96 19:04:48 JST From: akiyama@kme.mei.co.jp To: FreeBSD-gnats-submit@freebsd.org Subject: bin/2197: function prototype mismatch breaks make world. Message-ID: <9612121004.AA01704@kmegate.kme.mei.co.jp> Resent-Message-ID: <199612121010.CAA03629@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 2197
>Category: bin
>Synopsis: function prototype mismatch breaks make world.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 12 02:10:01 PST 1996
>Last-Modified:
>Originator: Shunsuke Akiyama
>Organization:
Kyushu Matsushita Electric Co., LTD.
>Release: FreeBSD 2.2-ALPHA i386
>Environment:
All FreeBSD 2.2-ALPHA systems.
>Description:
functional prototype of malloc() is not match between standard
header declaration and sources of /usr/bin/fmt and
/usr/games/adventure.
This breaks making all binaries at /usr/src.
>How-To-Repeat:
# cd /usr/src
# make all
>Fix:
===================================================================
--- games/adventure/hdr.h 1996/10/20 13:45:46
+++ games/adventure/hdr.h 1996/10/20 13:46:30
@@ -156,7 +156,7 @@
int demo,newloc,limit;
-char *malloc();
+void *malloc();
char *decr();
unsigned long crc();
===================================================================
--- usr.bin/fmt/fmt.c 1996/11/27 14:56:25
+++ usr.bin/fmt/fmt.c 1996/11/27 14:58:55
@@ -70,7 +70,7 @@
int mark; /* Last place we saw a head line */
int center;
-char *malloc(); /* for lint . . . */
+void *malloc(); /* for lint . . . */
char *headnames[] = {"To", "Subject", "Cc", 0};
/*
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9612121004.AA01704>
