aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2003-07-18 05:58:58 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2003-07-18 05:58:58 +0000
commit95210a63e53ff4f113424a06d0f81e2068bfdc1a (patch)
tree719dd936728ccdf2d80b9f83e2b3200b155204e2
parent323a5b0cd84c6aa248bc4d0314bbc081da4b093b (diff)
downloadports-95210a63e53ff4f113424a06d0f81e2068bfdc1a.tar.gz
ports-95210a63e53ff4f113424a06d0f81e2068bfdc1a.zip
fix astro/mymoon: fix build with gcc-3.3
PR: 54602 Submitted by: Kirill Ponomarew <ponomarew@oberon.net> (maintainer)
Notes
Notes: svn path=/head/; revision=85108
-rw-r--r--astro/mymoon/files/patch-mymoon.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/astro/mymoon/files/patch-mymoon.c b/astro/mymoon/files/patch-mymoon.c
new file mode 100644
index 000000000000..f6bb0da8788a
--- /dev/null
+++ b/astro/mymoon/files/patch-mymoon.c
@@ -0,0 +1,23 @@
+--- mymoon.c.orig Fri Jul 18 09:25:58 2003
++++ mymoon.c Fri Jul 18 09:26:35 2003
+@@ -122,14 +122,12 @@
+ getmaxyx(stdscr,row,cols);
+
+ mvprintw(row/4,0,
+-"
+- Moon's situation at: %d/%d/%d %d:%d:%d
+- Age: +- %d days
+- Rise: %d/%d/%d %d:%d:%d
+- Set: %d/%d/%d %d:%d:%d
+- Illuminated: %.4f%%
+- Moon->Earth distance: %.3f Km\n\n
+-",
++ "Moon's situation at: %d/%d/%d %d:%d:%d\n"
++ "Age: +- %d days\n"
++ "Rise: %d/%d/%d %d:%d:%d\n"
++ "Set: %d/%d/%d %d:%d:%d\n"
++ "Illuminated: %.4f%%\n"
++ "Moon->Earth distance: %.3f Km\n\n",
+ date3.days,date3.months,date3.years,date3.hours,date3.minutes,(int)date3.seconds,(int)age,
+ date1.days,date1.months,date1.years,date1.hours,date1.minutes,(int)date1.seconds,
+ date2.days,date2.months,date2.years,date2.hours,date2.minutes,(int)date2.seconds,light,dist);