]> git.pond.sub.org Git - empserver/blobdiff - src/server/shutdown.c
COPYING duplicates information from README. Remove. Move GPL from
[empserver] / src / server / shutdown.c
index dcdfd998ce7bf1221ee3846db7d5b3bc32fc87b5..2538bc2344cb61cfac91c4a8dd0bc4c0b2fa5916 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2000, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -19,9 +19,9 @@
  *
  *  ---
  *
- *  See the "LEGAL", "LICENSE", "CREDITS" and "README" files for all the
- *  related information and legal notices. It is expected that any future
- *  projects/authors will amend these files as needed.
+ *  See files README, COPYING and CREDITS in the root of the source
+ *  tree for related information and legal notices.  It is expected
+ *  that future projects/authors will amend these files as needed.
  *
  *  ---
  *
  *     Ken Stevens, 1995
  */
 
+#include <config.h>
+
 #include "misc.h"
 #include "player.h"
 #include "empio.h"
 #include "empthread.h"
-#include "proto.h"
 #include "nat.h"
 #include "file.h"
 #include <time.h>
+#include "server.h"
 #include "prototypes.h"
 
 int shutdown_pending;
@@ -50,9 +52,7 @@ shutdown_init(void)
 }
 
 void
-shutdown_sequence(argc, argv)
-int argc;
-s_char **argv;
+shutdown_sequence(void *unused)
 {
     struct natstr *god;
     struct tm *tm;
@@ -83,13 +83,11 @@ s_char **argv;
                        shutdown_pending);
            } else if (shutdown_pending <= 60
                       && shutdown_pending % 10 == 0) {
-               pr_wall
-                   ("%sThe server will be shutting down in %d minutes!\n",
-                    header, shutdown_pending);
+               pr_wall("%sThe server will be shutting down in %d minutes!\n",
+                       header, shutdown_pending);
            } else if (shutdown_pending % 60 == 0) {
-               pr_wall
-                   ("%sThe server will be shutting down %d hours from now.\n",
-                    header, (int)(shutdown_pending / 60));
+               pr_wall("%sThe server will be shutting down %d hours from now.\n",
+                       header, (int)(shutdown_pending / 60));
            }
        }
        empth_sleep(now + 60);