]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - misc-utils/ddate.c
Imported from util-linux-2.7.1 tarball.
[thirdparty/util-linux.git] / misc-utils / ddate.c
index 96421d0210cdeaaa7f833d58b7107fc97a923360..f838d1c63fe4e1a76dde8aaa61b2b58d66ae5405 100644 (file)
 
 /*#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 */