]> git.pond.sub.org Git - empserver/blobdiff - src/server/marketup.c
client: Unbreak standalone build
[empserver] / src / server / marketup.c
index 22ca6771d82426c84da7001e95e47b4f14103be0..a5853082a11c125bbaad76bcd064f61700225925 100644 (file)
@@ -1,11 +1,11 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
- *                           Ken Stevens, Steve McClure
+ *  Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *                Ken Stevens, Steve McClure, Markus Armbruster
  *
- *  This program is free software; you can redistribute it and/or modify
+ *  Empire is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
+ *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
@@ -14,8 +14,7 @@
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  *  ---
  *
  *  ---
  *
  *  marketup.c: Market updater thread
- * 
+ *
  *  Known contributors to this file:
  *     Steve McClure, 1996
- *     Markus Armbruster, 2007
+ *     Markus Armbruster, 2007-2013
  */
 
 #include <config.h>
 
 #include "empthread.h"
-#include "file.h"
 #include "optlist.h"
 #include "player.h"
 #include "prototypes.h"
@@ -58,7 +56,6 @@ market_update(void *unused)
        now += 300;             /* Every 5 minutes */
        empth_sleep(now);
     }
-    /*NOTREACHED*/
 }
 
 void
@@ -71,6 +68,6 @@ market_init(void)
     dp = player_new(-1);
     if (!dp)
        exit_nomem();
-    if (!empth_create(market_update, 50 * 1024, 0, "MarketUpdate", dp))
+    if (!empth_create(market_update, 65536, 0, "MarketUpdate", dp))
        exit_nomem();
 }