Date: Mon, 15 Jul 1996 09:32:13 -0500 (CDT) From: Zach Heilig <zach@freebsd.gaffaneys.com> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/1385: /usr/games/pom, invalid declaration of main(). Message-ID: <199607151432.JAA00493@freebsd.gaffaneys.com> Resent-Message-ID: <199607151440.HAA14021@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 1385
>Category: bin
>Synopsis: /usr/games/pom, invalid declaration of main().
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 15 07:40:03 PDT 1996
>Last-Modified:
>Originator: Zach Heilig
>Organization:
Zach Heilig (zach@blizzard.gaffaneys.com)
>Release: FreeBSD 2.1-STABLE i386
>Environment:
2.1.5-RELEASE.
>Description:
pom returns an indeterminate value (observed values were 4, 22, and 23).
>How-To-Repeat:
put /usr/games/pom in a makefile :-)
>Fix:
Apply this patch.
*** pom.c.orig Mon Jul 15 14:19:10 1996
--- pom.c Mon Jul 15 14:19:33 1996
***************
*** 71,75 ****
void adj360();
! void main()
{
time_t tt;
--- 71,75 ----
void adj360();
! int main()
{
time_t tt;
***************
*** 106,109 ****
--- 106,111 ----
}
}
+
+ return 0;
}
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607151432.JAA00493>
