]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/orig.c
Fix trailing whitespace
[empserver] / src / lib / commands / orig.c
index ca379706a8a053ef32ef0193c7fc78bcefb4f2a1..b956edd97106c2f0e630d834987ade2625e27fbf 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -26,7 +26,7 @@
  *  ---
  *
  *  orig.c: Move your origin
- * 
+ *
  *  Known contributors to this file:
  *     Shelley Louie, 1988
  *     Markus Armbruster, 2006
 
 #include <config.h>
 
-#include "misc.h"
-#include "player.h"
-#include "sect.h"
-#include "xy.h"
-#include "nat.h"
-#include "file.h"
+#include <ctype.h>
 #include "commands.h"
 
 int
 orig(void)
 {
-    s_char *p;
+    char *p;
     coord x, y;
-    s_char buf[1024];
-    natid cnum;
+    char buf[1024];
+    int cnum;
     struct natstr *np;
 
     p = getstarg(player->argp[1], "New origin (sector or country) : ", buf);
-    if (!p)
+    if (!p || !*p)
        return RET_SYN;
     if (!isalpha(*p) && strchr(p, ',')) {
        /* sector */