Bug 78566 - Patch: astro/phoon . Fix for compilation warnings
Summary: Patch: astro/phoon . Fix for compilation warnings
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-07 22:40 UTC by Soeren Straarup
Modified: 2005-03-09 09:11 UTC (History)
0 users

See Also:


Attachments
patch-astro.h (261 bytes, text/plain)
2005-03-07 22:40 UTC, Soeren Straarup
no flags Details
Makefile.patch (308 bytes, patch)
2005-03-07 22:40 UTC, Soeren Straarup
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Soeren Straarup 2005-03-07 22:40:02 UTC
	Compilation warnings:
	astro.h: an #endif had an argument, didn't like it..
		My change looks to be style(9) compliant
	phoon.c: clocknow was of type long, with it should had been time_t

	Further more I would like to Maintainer of the port astro/phoon.

Fix: Place the files patch-astro.h and patch-phoon.c in:
	...ports/astro/phoon/files/

	Apply Makefile.patch to:
	...ports/astro/phoon/Makefile

--- phoon.c.orig	Sun Mar  6 22:33:22 2005
+++ phoon.c	Sun Mar  6 22:33:45 2005
@@ -354,7 +354,7 @@
     struct tm* tmP;
     double jd, pctphase, angphase, cphase, aom, cdist, cangdia, csund, csuang;
     double phases[2], which[2];
-    long clocknow;
+    time_t clocknow;
     int atflrlen, atflridx, numcols, lin, col, midlin;
     double mcap, yrad, xrad, y, xright, xleft;
     int colright, colleft;
--- patch-phoon.c ends here ---
How-To-Repeat: 	cd ...ports/astro/phoon && make
Comment 1 Michael Johnson freebsd_committer freebsd_triage 2005-03-09 09:10:01 UTC
State Changed
From-To: open->closed
Comment 2 Michael Johnson freebsd_committer freebsd_triage 2005-03-09 09:10:59 UTC
State Changed
From-To: closed->closed

Committed, Thanks 

Next time please send a diff of the entire work directory, not each file 
ie. diff -ruN port-name.orig port-name > patch-file