]> git.pond.sub.org Git - empserver/commitdiff
Comments, whitespace.
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 2 Jun 2006 05:49:29 +0000 (05:49 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 2 Jun 2006 05:49:29 +0000 (05:49 +0000)
src/lib/as/as_winnow.c
src/lib/commands/spy.c
src/lib/common/wantupd.c
src/lib/empthread/ntthread.c
src/lib/global/file.c
src/lib/subs/control.c
src/lib/subs/list.c
src/lib/subs/mission.c
src/lib/subs/supply.c
src/server/main.c

index 839b19b433fbc6f837cc111e67a3da6bd5b7eec2..9ade2e1c806fc0bb8db49872d04264ca45b879cd 100644 (file)
@@ -40,7 +40,6 @@ static struct as_node *as_newnode(struct as_node *backp, struct as_coord c,
  *                     old node to the subsumed list.
  *                     If not, ignore this neighbor.
  *             If this neighbor isn't in the queue, add it.
- *
  */
 int
 as_winnow(struct as_data *adp, struct as_coord *coords, int ncoords)
index fd550bc0ced6ddd61ff0106a9748c591315f9aaf..c7999c74ecf0380e718971505cb4e44570f8a61e 100644 (file)
@@ -50,7 +50,6 @@
 
 /*
  * format:  spy <SECTS>
- *
  */
 
 static int check(coord *table, int *len, coord x, coord y);
index e85e76ec8e26e52391e7f69d08c6f6dc396c4fa1..392869df0d705332d7dc548dabe831b37bed07cf 100644 (file)
@@ -257,7 +257,6 @@ next_update_time(time_t *now, time_t *tim, time_t *delta)
        *delta = (blitz_time * 60) - (*now % (blitz_time * 60));
        *tim = *now + *delta;
        break;
-
     case UDP_NOREG:
     default:
        regular_update_time(now, tim, delta);
index 3aabec1070f960bbebdbb9a10302a8cbc3c3de3f..1f420fa78853c1c3850463f0c0a0876299d7d56f 100644 (file)
@@ -42,7 +42,6 @@
  * WIN32 has a full pre-emptive threading environment.  But Empire can
  * not handle pre-emptive threading.  Thus, we will use the threads,
  * but limit the preemption using a Mutex semaphore.
- *
  */
 
 #include <config.h>
@@ -184,7 +183,6 @@ loc_debug(const char *pszFmt, ...)
 
 /************************
  * loc_FreeThreadInfo
- *
  */
 static void
 loc_FreeThreadInfo(empth_t *pThread)
index f60077a6ce85abc1a620046ab2b328e658429d21..ac0b7e82e7c55060e052beeffec933ab7d8b192e 100644 (file)
@@ -107,7 +107,7 @@ struct empfile empfile[] = {
 
     /*
      * Keep in mind that player command arguments are matched against
-     * member name; no whitespace please.
+     * values of member name: no whitespace there, please.
      */
 
     /* Dynamic game data */
index 9c8bc68b0c7f9c55798e61f836bda7f649a496ee..41d13932a14cfce28501f306f3830d0cd4ef1f71 100644 (file)
@@ -47,7 +47,6 @@
 
 /*
  * Does the player->owner have military control of this sector?
- *
  */
 int
 military_control(struct sctstr *sp)
index ea1a711f6d2f13fc8fcf3325f91c6b7cb6b0bb3c..016152c83a1a96bd5bc604358fca1dc39c46e80c 100644 (file)
@@ -282,7 +282,6 @@ num_shipsatxy(coord x, coord y, int wantflags, int nowantflags)
 
 /*
  * is p a list of ships/planes/units?
- *
  */
 
 int
index 6c20f75ee517c04b4a5bdcc29d358a9a3544fd21..3982b982d8996e4f90e53b4e86bbdbb18677218b 100644 (file)
@@ -174,7 +174,6 @@ only_subs(struct emp_qelem *list)
 
 /*
  *  Interdict ships & land units
- *
  */
 int
 unit_interdict(coord x, coord y, natid victim, char *s, int hardtarget,
@@ -1139,7 +1138,6 @@ mission_pln_sel(struct emp_qelem *list, int wantflags, int nowantflags,
 
 /*
  * Arm only the planes at x,y
- *
  */
 static int
 mission_pln_arm(struct emp_qelem *list, coord x, coord y, int dist,
index b770ee2dc277113d5017feeca1f169030d9a5d72..8795d045fb025ee09fb267717be4ce536436389a 100644 (file)
@@ -64,7 +64,6 @@ static int s_commod(int, int, int, i_type, int, int);
  *              unit will then call resupply, taking more time)
  *
  * May want to put code to resupply with SAMs here, later --ts
- *
  */
 
 void
index fbafe1055ae28fe2918d79f35d499491028f4008..3069a8ca1af88d85f8fe58b80f4bc6bf52ad110c 100644 (file)
@@ -142,17 +142,13 @@ main(int argc, char **argv)
 #if defined(_WIN32)
        case 'I':
            service_name = optarg;
-           /*
-            * fall out
-            */
+           /* fall through */
        case 'i':
            install_service_set++;
            break;
        case 'R':
            service_name = optarg;
-           /*
-            * fall out
-            */
+           /* fall through */
        case 'r':
            remove_service_set++;
            break;