summaryrefslogtreecommitdiffstats
path: root/misc-utils/ddate.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc-utils/ddate.c')
-rw-r--r--misc-utils/ddate.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/misc-utils/ddate.c b/misc-utils/ddate.c
index 96421d021..f838d1c63 100644
--- a/misc-utils/ddate.c
+++ b/misc-utils/ddate.c
@@ -53,14 +53,20 @@
/*#define PRAISE_BOB 13013*/
-#include <time.h>
+#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include <stdio.h>
#ifndef __GNUC__
#define inline /* foo */
#endif
+#ifdef KILL_BOB
+int xday_countdown(int yday, int year);
+#endif
+
+
/* string constants */
char *day_long[5] = {
@@ -76,11 +82,11 @@ char *season_long[5] = {
char *season_short[5] = {"Chs", "Dsc", "Cfn", "Bcy", "Afm"};
char *holyday[5][2] = {
- "Mungday", "Chaoflux",
- "Mojoday", "Discoflux",
- "Syaday", "Confuflux",
- "Zaraday", "Bureflux",
- "Maladay", "Afflux"
+ { "Mungday", "Chaoflux" },
+ { "Mojoday", "Discoflux" },
+ { "Syaday", "Confuflux" },
+ { "Zaraday", "Bureflux" },
+ { "Maladay", "Afflux" }
};
struct disc_time {
@@ -131,6 +137,7 @@ int load_fortunes(char *fn, char *delim, char** result);
struct disc_time convert(int,int);
struct disc_time makeday(int,int,int);
+int
main (int argc, char *argv[])
{
long t;
@@ -298,7 +305,6 @@ struct disc_time convert(int nday, int nyear)
}
-
#ifdef KILL_BOB
/* Code for counting down to X-Day, X-Day being Cfn 40, 3164 */