version 1.52 | | version 1.53 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.52 2001/12/04 03:49:18 michtoen Exp $"; | | * "$Id: main.c,v 1.53 2001/12/18 08:58:03 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
#include <version.h> | | #include <version.h> |
#include <global.h> | | #include <global.h> |
#include <object.h> | | #include <object.h> |
| | #include <tod.h> |
| | |
#ifdef HAVE_DES_H | | #ifdef HAVE_DES_H |
#include <des.h> | | #include <des.h> |
| | |
clean_tmp_map(m); | | clean_tmp_map(m); |
#endif | | #endif |
} | | } |
| | write_todclock(); /* lets just write the clock here */ |
} | | } |
| | |
/* clean up everything before exiting */ | | /* clean up everything before exiting */ |
| | |
* doing the various things. | | * doing the various things. |
*/ | | */ |
| | |
| | extern unsigned long todtick; |
| | |
void do_specials() { | | void do_specials() { |
| | |
#ifdef WATCHDOG | | #ifdef WATCHDOG |
| | |
watchdog(); | | watchdog(); |
#endif | | #endif |
| | |
| | if (!(pticks % PTICKS_PER_CLOCK)) |
| | tick_the_clock(); |
| | |
if (!(pticks % 509)) | | if (!(pticks % 509)) |
flush_old_maps(); /* Clears the tmp-files of maps which have reset */ | | flush_old_maps(); /* Clears the tmp-files of maps which have reset */ |
| | |