]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/natarg.c
Update copyright notice
[empserver] / src / lib / subs / natarg.c
index 099fd4e18ce81b8d07c5be1950a91c0f80c5e147..5a427fabc700010c0b5ab83a5741cd39a55449e4 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-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
  *  ---
  *
  *  natarg.c: Return countr # given country name or country #
- * 
+ *
  *  Known contributors to this file:
- *     Markus Armbruster, 2006
+ *     Markus Armbruster, 2006-2009
  */
 
 #include <config.h>
 
 #include <ctype.h>
+#include <stdlib.h>
+#include "file.h"
+#include "match.h"
 #include "misc.h"
 #include "nat.h"
+#include "optlist.h"
 #include "player.h"
-#include "file.h"
-#include "match.h"
 #include "prototypes.h"
-#include "optlist.h"
 
 /*
  * Get nation argument.
@@ -58,7 +59,7 @@ natargp(char *arg, char *prompt)
     struct natstr *np;
 
     arg = getstarg(arg, prompt, buf);
-    if (arg == 0 || *arg == 0)
+    if (!arg || !*arg)
        return NULL;
     if (isdigit(*arg))
        n = atoi(arg);