]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/wing.c
Fix trailing whitespace
[empserver] / src / lib / commands / wing.c
index 593335acfa8f39a0330fd7025d51d59336fa0134..5b0172319dc17cf044eb51b894fb2cc691d6baa9 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
  *  ---
  *
  *  wing.c: Add planes to a wing
- * 
+ *
  *  Known contributors to this file:
- *  
+ *
  */
 
 #include <config.h>
 
 #include <ctype.h>
-#include "misc.h"
-#include "player.h"
-#include "plane.h"
-#include "nsc.h"
-#include "file.h"
 #include "commands.h"
+#include "plane.h"
 
 int
 wing(void)
@@ -47,10 +43,10 @@ wing(void)
 
     struct plnstr plane;
     int count;
-    s_char *cp;
-    s_char c;
+    char *cp;
+    char c;
     struct nstr_item nstr;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!(cp = getstarg(player->argp[1], "wing? ", buf)))
        return RET_SYN;
@@ -60,8 +56,8 @@ wing(void)
        return RET_SYN;
     }
     if (c == '~')
-       c = ' ';
-    if (!snxtitem(&nstr, EF_PLANE, player->argp[2]))
+       c = 0;
+    if (!snxtitem(&nstr, EF_PLANE, player->argp[2], NULL))
        return RET_SYN;
     count = 0;
     while (nxtitem(&nstr, &plane)) {
@@ -73,6 +69,6 @@ wing(void)
        putplane(plane.pln_uid, &plane);
        count++;
     }
-    pr("%d plane%s added to wing `%c'\n", count, splur(count), c);
+    pr("%d plane%s added to wing `%1.1s'\n", count, splur(count), &c);
     return RET_OK;
 }