From fd6b7a7ffc50400704beb41d5a23af5f9edb1eed Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:25:34 +0100 Subject: Imported from util-linux-2.7.1 tarball. --- misc-utils/ddate.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'misc-utils/ddate.c') 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 +#include #include +#include #include #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 */ -- cgit v1.2.3-55-g7522