]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/comm.c
Indented with src/scripts/indent-emp.
[empserver] / src / lib / commands / comm.c
index 87c223cdbec1e71f252e4c6aaef4b5a73c95be61..6eeacd52b1266c47942d49d460e365337e9931eb 100644 (file)
 #include "file.h"
 #include "commands.h"
 
-static void prthresh(s_char *format, int val);
+static void prthresh(s_char *format, int val);
 
 int
 comm(void)
 {
-    struct     sctstr sect;
-    s_char     dirstr[12];
-    int        nsect;
-    int        n;
-    struct     nstr_sect nstr;
-    int        del[I_MAX+1];
-    int        dist[I_MAX+1];
-    int        item[I_MAX+1];
-    
+    struct sctstr sect;
+    s_char dirstr[12];
+    int nsect;
+    int n;
+    struct nstr_sect nstr;
+    int del[I_MAX + 1];
+    int dist[I_MAX + 1];
+    int item[I_MAX + 1];
+
     if (!snxtsct(&nstr, player->argp[1]))
        return RET_SYN;
     prdate();
-    (void) strcpy(dirstr, ".      $");
+    (void)strcpy(dirstr, ".      $");
     n = 1;
     for (n = 1; n <= 6; n++)
        dirstr[n] = dirch[n];
@@ -121,7 +121,7 @@ comm(void)
        else
            pr("%s: No sector(s)\n", "");
        return RET_FAIL;
-    }else
+    } else
        pr("%d sector%s\n", nsect, splur(nsect));
     return 0;
 }
@@ -137,5 +137,3 @@ prthresh(s_char *format, int val)
        val = '.';
     pr(format, val);
 }
-
-